From 6d96b2990ad9cac87526204291444991f4c7bccb Mon Sep 17 00:00:00 2001 From: ModelHub XC Date: Fri, 11 Sep 2026 17:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=EF=BC=8C=E7=94=B1ModelHub=20XC=E7=A4=BE=E5=8C=BA=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Model: Liquid1/llama-3-8b-liquid-coding-agent Source: Original Platform --- .gitattributes | 39 +++++++ README.md | 118 +++++++++++++++++++++ config.json | 3 + llama-3-8b-liquid-coding-agent.F16.gguf | 3 + llama-3-8b-liquid-coding-agent.Q4_K_M.gguf | 3 + 5 files changed, 166 insertions(+) create mode 100644 .gitattributes create mode 100644 README.md create mode 100644 config.json create mode 100644 llama-3-8b-liquid-coding-agent.F16.gguf create mode 100644 llama-3-8b-liquid-coding-agent.Q4_K_M.gguf diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8715e5c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,39 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +unsloth.F16.gguf filter=lfs diff=lfs merge=lfs -text +unsloth.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text +llama-3-8b-liquid-coding-agent.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text +llama-3-8b-liquid-coding-agent.F16.gguf filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000..77942ee --- /dev/null +++ b/README.md @@ -0,0 +1,118 @@ +--- +base_model: unsloth/llama-3-8b-Instruct-bnb-4bit +language: +- en +license: apache-2.0 +tags: +- llama +- gguf +--- + +# Trained For: Coding with Extractable Tags + +This model has been trained on coding wrapped in special tags. + +# Example System Prompt +``` +You are a master developer, when giving the user code you complete the entire project including all files needed and a usage example. +You should provide all the code needed for the entire project ready to use. + +Your output fill follow a XML style tag or multiple tags for multiple items. +All blocks of code will be wrapped in and tags each codestart tag will contain some information on file contents. + +Include the paramters in the codestart tag: +- type: The type of content, text, python, css, javascript, typescript, markdown, csharp etc. +- isFile: If this file is to be saved in the project. +- title: The title of the file, simple and concise. +- file: This is the path to the file in the project. Should be valid file name and path. Required if isFile set to true. + +Here are some examples: +CODE HERE +TEXT HERE +PYTHON CODE HERE +CSS HERE +MARKDOWN HERE + + +You should leverage local technology instead of paid/remote services example: SQLite over MySQL unless requested to use specific technology or it is a better choice. +Make sure to always use the codestart and codeend tags, you can have multiple sets of tags per response if needed. +``` + + +# Tests: + +**User Input**: Write a python program for a simple restful api + +**Output**: +``` +Here is an example of a simple RESTful API using Flask in Python: + +import flask +from flask import request, jsonify + +app = flask.Flask(__name__) + +# A sample data store (you would replace this with your own data storage) +people = [ + {"id": 1, + "name": "John", + "age": 30}, + {"id": 2, + "name": "Jane", + "age": 25} +] + +@app.route('/', methods=['GET']) +def index(): + return "

RESTful API

" + +@app.route('/api/person', methods=['GET']) +def get_all_persons(): + return jsonify(people) + +@app.route('/api/person/', methods=['GET']) +def get_person(id): + result = next((i for i in people if i["id"] == id), None) + if not result: + return "Person not found", 404 + return jsonify(result) + +@app.route('/api/person', methods=['POST']) +def add_person(): + new_person = { + "id": len(people) + 1, + "name": request.json['name'], + "age": request.json['age'] + } + people.append(new_person) + return jsonify(new_person), 201 + +@app.route('/api/person/', methods=['PUT']) +def update_person(id): + result = next((i for i in people if i["id"] == id), None) + if not result: + return "Person not found", 404 + result["name"] = request.json.get('name', result["name"]) + result["age"] = request.json.get('age', result["age"]) + return jsonify(result) + +@app.route('/api/person/', methods=['DELETE']) +def delete_person(id): + global people + people[:] = [p for p in people if p["id"] != id] + return "Person deleted", 200 + +if __name__ == '__main__': + app.run() + + +You can run this application with `python main.py` and access it through your web browser at `http://localhost:5000`. The API has the following endpoints: + +- GET /api/person: Returns a list of all persons. +- GET /api/person/: Returns a specific person by ID. +- POST /api/person: Adds a new person to the list. +- PUT /api/person/: Updates an existing person. +- DELETE /api/person/: Deletes a person. + +Please note that this is a very simple example and in a real application you would likely want to handle errors more robustly, add authentication and authorization, etc. +``` diff --git a/config.json b/config.json new file mode 100644 index 0000000..a4ba21b --- /dev/null +++ b/config.json @@ -0,0 +1,3 @@ +{ + "model_type": "llama" +} \ No newline at end of file diff --git a/llama-3-8b-liquid-coding-agent.F16.gguf b/llama-3-8b-liquid-coding-agent.F16.gguf new file mode 100644 index 0000000..88c7c97 --- /dev/null +++ b/llama-3-8b-liquid-coding-agent.F16.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fe6d072926bed8ce842a10ab3a4e5368148a4440f10cefe12306cebb67d8cd3 +size 16068890976 diff --git a/llama-3-8b-liquid-coding-agent.Q4_K_M.gguf b/llama-3-8b-liquid-coding-agent.Q4_K_M.gguf new file mode 100644 index 0000000..95c51c3 --- /dev/null +++ b/llama-3-8b-liquid-coding-agent.Q4_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf0e7bf7eabf1e6fd2f47139839907147d595c3bdde5952286b677f1c63ec158 +size 4920734048