Text Generation
GGUF
Chinese
English
Yue Chinese
qwen3
coder
lora
code
lychee
quantized
multilingual
conversational
Instructions to use whcl412/LycheeAI-coder-1.7b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use whcl412/LycheeAI-coder-1.7b-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use whcl412/LycheeAI-coder-1.7b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "whcl412/LycheeAI-coder-1.7b-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "whcl412/LycheeAI-coder-1.7b-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M
- Ollama
How to use whcl412/LycheeAI-coder-1.7b-GGUF with Ollama:
ollama run hf.co/whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use whcl412/LycheeAI-coder-1.7b-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use whcl412/LycheeAI-coder-1.7b-GGUF with Docker Model Runner:
docker model run hf.co/whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M
- Lemonade
How to use whcl412/LycheeAI-coder-1.7b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.LycheeAI-coder-1.7b-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use whcl412/LycheeAI-coder-1.7b-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use whcl412/LycheeAI-coder-1.7b-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "whcl412/LycheeAI-coder-1.7b-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
v10: final balanced version
Browse files- .ms_upload_cache +1 -1
- Modelfile +2 -2
- README.md +7 -1
- mlx-LycheeAI-coder-1.7b-q4_k_m.gguf +1 -1
.ms_upload_cache
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"version": 3, "repo_id": "whcl412/LycheeAI-coder-1.7b-GGUF", "files": {"README.md|
|
|
|
|
| 1 |
+
{"version": 3, "repo_id": "whcl412/LycheeAI-coder-1.7b-GGUF", "files": {"README.md|1787195415.4128375|3355": {"hash": "74fa79d02dedf04e8c4eb4b9698df6843f214d6f88904d4b5586bedf44e0820a", "size": 3355, "status": "c"}, "Modelfile|1787195415.4082124|184": {"hash": "ed7dcae3e90c730ed3e4551e479e48fae9a12321c1f1b697104eb7e8c25c3753", "size": 184, "status": "c"}, "mlx-LycheeAI-coder-1.7b-q4_k_m.gguf|1787195415.4049113|1107408768": {"hash": "32ca36564c835db1503f47430a2f413ef56610f36ab821eac5188443090f8058", "size": 1107408768, "status": "c"}}}
|
Modelfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
FROM ./lychee-
|
| 2 |
|
| 3 |
-
SYSTEM """你是 LycheeAI-coder-1.7b,由 Qwen3-1.7B 通过 LoRA 微调而来的编程助手。
|
| 4 |
|
| 5 |
PARAMETER stop <|im_end|>
|
| 6 |
PARAMETER temperature 0.7
|
|
|
|
| 1 |
+
FROM ./lychee-v10-q4_k_m.gguf
|
| 2 |
|
| 3 |
+
SYSTEM """你是 LycheeAI-coder-1.7b,由 Qwen3-1.7B 通过 LoRA 微调而来的编程助手。"""
|
| 4 |
|
| 5 |
PARAMETER stop <|im_end|>
|
| 6 |
PARAMETER temperature 0.7
|
README.md
CHANGED
|
@@ -25,7 +25,9 @@ datasets:
|
|
| 25 |
|
| 26 |
# LycheeAI-coder-1.7b-GGUF
|
| 27 |
|
| 28 |
-
|
|
|
|
|
|
|
| 29 |
|
| 30 |
> 本仓库提供 **GGUF 格式**(跨平台,Ollama / llama.cpp / LM Studio 通用)。如需 Apple Silicon 的 MLX 版本,见 [mlx-LycheeAI-coder-1.7b](https://huggingface.co/whcl412/mlx-LycheeAI-coder-1.7b)。
|
| 31 |
|
|
@@ -61,5 +63,9 @@ llama-cli -m mlx-LycheeAI-coder-1.7b-q4_k_m.gguf -p "写一个二分查找" -n 2
|
|
| 61 |
- 第三轮(增量微调):多语言小型项目 90 条(Python/C/C++/C#/HTML/Java/JS/Swift/Go)+ 场景感知对话 60 条,学会看场景决定说多说少、适度用 emoji(从第二轮续训,lr 5e-5,150 步)
|
| 62 |
- 第四轮(增量微调):情感共情 40 + 格式感知 21 + 多轮 10 + 复合逻辑 11 + 纯代码 18 + 锚点 20,修复复合逻辑出错/乱用代码块/缺共情/缺多轮四个短板(从第三轮续训,lr 5e-5,120 步)
|
| 63 |
- 第五轮(增量微调):正确代码 79(9语言)+ bug 修复 20 + 分场合安慰 20,提升代码正确性、学会分场合安慰(从第四轮续训,lr 5e-5)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
- 身份:通过 system prompt + 身份问答样本,固定为「LycheeAI-coder-1.7b,由 Qwen3-1.7B 微调而来」
|
| 65 |
- 许可:Apache 2.0(跟随基座)
|
|
|
|
| 25 |
|
| 26 |
# LycheeAI-coder-1.7b-GGUF
|
| 27 |
|
| 28 |
+
> **当前版本:V10**(最终均衡版)
|
| 29 |
+
|
| 30 |
+
**LycheeAI-coder-1.7b** 的 **GGUF 量化版本**,基于 [Qwen3-1.7B](https://huggingface.co/Qwen/Qwen3-1.7B) 通过 QLoRA(4-bit)微调,代码优先、支持中/英/粤三语对话、情感共情、可开关思考。
|
| 31 |
|
| 32 |
> 本仓库提供 **GGUF 格式**(跨平台,Ollama / llama.cpp / LM Studio 通用)。如需 Apple Silicon 的 MLX 版本,见 [mlx-LycheeAI-coder-1.7b](https://huggingface.co/whcl412/mlx-LycheeAI-coder-1.7b)。
|
| 33 |
|
|
|
|
| 63 |
- 第三轮(增量微调):多语言小型项目 90 条(Python/C/C++/C#/HTML/Java/JS/Swift/Go)+ 场景感知对话 60 条,学会看场景决定说多说少、适度用 emoji(从第二轮续训,lr 5e-5,150 步)
|
| 64 |
- 第四轮(增量微调):情感共情 40 + 格式感知 21 + 多轮 10 + 复合逻辑 11 + 纯代码 18 + 锚点 20,修复复合逻辑出错/乱用代码块/缺共情/缺多轮四个短板(从第三轮续训,lr 5e-5,120 步)
|
| 65 |
- 第五轮(增量微调):正确代码 79(9语言)+ bug 修复 20 + 分场合安慰 20,提升代码正确性、学会分场合安慰(从第四轮续训,lr 5e-5)
|
| 66 |
+
- 第六轮(可开关思考):思考模式 80(`<think>` 推理)+ 直答 49(`/no_think`)+ 锚点 30,学会可开关思考(从第五轮续训,lr 5e-5,160 步)
|
| 67 |
+
- 第七轮(纠偏):常识纠偏+网络用语 25 + 身份区分 10 + 诚实兜底 6 + 按难度思考 30 + 网络上下文 10 + 锚点 15,修复身份过拟合(从第六轮续训,lr 5e-5,100 步)
|
| 68 |
+
- 第八轮(代码拉回):完整代码项目 39 + 调试 15 + 思考 10 + 纠偏 10 + 锚点 15,修复代码退化(从第七轮续训,lr 5e-5,90 步)
|
| 69 |
+
- 第九轮(最终均衡 V10):200 条 = 代码 75 + 情感 25 + 日常 20 + 常识 20 + 思考 15 + 多语言 15 + 网络 10 + 身份 10 + 诚实 10(从第八轮续训,lr 5e-5,200 步)
|
| 70 |
- 身份:通过 system prompt + 身份问答样本,固定为「LycheeAI-coder-1.7b,由 Qwen3-1.7B 微调而来」
|
| 71 |
- 许可:Apache 2.0(跟随基座)
|
mlx-LycheeAI-coder-1.7b-q4_k_m.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1107408768
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32ca36564c835db1503f47430a2f413ef56610f36ab821eac5188443090f8058
|
| 3 |
size 1107408768
|