Instructions to use nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use nwdxlgzs/XL-LuaCopilot-0.6B-FFT-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 nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf nwdxlgzs/XL-LuaCopilot-0.6B-FFT-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 nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF:Q4_K_M
Use Docker
docker model run hf.co/nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF:Q4_K_M
- SGLang
How to use nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF with Ollama:
ollama run hf.co/nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF with Docker Model Runner:
docker model run hf.co/nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF:Q4_K_M
- Lemonade
How to use nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.XL-LuaCopilot-0.6B-FFT-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
XL-LuaCopilot-0.6B-FFT
XL-LuaCopilot-0.6B-FFT is a large language model (LLM) based on the Qwen architecture(Qwen3-0.6B-Base), specifically designed for code generation tasks in Lua programming language. It has been full fine-tuned (FFT) to improve its performance and efficiency when generating Lua code.
I sugggest you use "chat_template_kwargs": {"enable_thinking": false} because my train data with none thinking. I also found low temperature ususually works well for code generation tasks.
quantize=["Q4_0", "Q4_1", "Q5_0", "Q5_1", "IQ3_XXS", "IQ3_S", "IQ3_M", "Q3_K", "IQ3_XS", "Q3_K_S", "Q3_K_M", "Q3_K_L", "IQ4_NL", "IQ4_XS", "Q4_K", "Q4_K_S", "Q4_K_M", "Q5_K", "Q5_K_S", "Q5_K_M", "Q6_K", "Q8_0", "F16", "BF16"]
How To Use
With OpenAI Compatible API (llama.cpp:llama-server)
-> REQUEST ->
{
"model": "XL-LuaCopilot-0.6B-FFT",
"messages": [
{"role": "system","content": "prefix"},
{"role": "user","content": "do\n--打印:你好世界\n local tex"},
{"role": "system","content": "suffix"},
{"role": "user","content": "nd"},
{"role": "system","content": "middle"}
],
"stream": false,
"cache_prompt": false,
"samplers": "edkypmxt",
"temperature": 0.1,
"dynatemp_range": 0.1,
"dynatemp_exponent": 1,
"top_k": 70,
"top_p": 0.9,
"min_p": 0.05,
"typical_p": 0.9,
"xtc_probability": 0,
"xtc_threshold": 0.1,
"repeat_last_n": 32,
"repeat_penalty": 1.1,
"presence_penalty": 0,
"frequency_penalty": 0.5,
"dry_multiplier": 0,
"dry_base": 1.75,
"dry_allowed_length": 2,
"dry_penalty_last_n": -1,
"max_tokens": -1,
"timings_per_token": true,
"chat_template_kwargs": {"enable_thinking": false}
}
-> RESPONSE ->
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"role": "assistant",
"content": "<think>\n\n</think>\n\nt = \"你好世界\"\n print(text)\ne"
}
}
],
...
}
I know Qwen has
<|fim_prefix|>/<|fim_suffix|>/<|fim_middle|>tokens, but I'm not sure Qwen3 trains these tokens (I just know Qwen2.5-Coder does). To use code generation easily, I use chatml format.
If you just want to chat with it, you can use some tricks like this:
<|im_end|>
<|im_start|>system
prefix<|im_end|>
<|im_start|>user
do
--打印:你好世界
local tex<|im_end|>
<|im_start|>system
suffix<|im_end|>
<|im_start|>user
nd<|im_end|>
<|im_start|>system
middle
It dosen't work very well, but it's a good way let you fast try. It will convert to this prompt text:
<|im_start|>user
<|im_end|>
<|im_start|>system
prefix<|im_end|>
<|im_start|>user
do
--打印:你好世界
local tex<|im_end|>
<|im_start|>system
suffix<|im_end|>
<|im_start|>user
nd<|im_end|>
<|im_start|>system
middle<|im_end|>
Hope model skip first <|im_start|>user\n<|im_end|> part.
Train Device
Online GPU is Expensive !
| 类别 | 配置详情 |
|---|---|
| 镜像 | Ubuntu 22.04 |
| PyTorch | 2.5.1 |
| Python | 3.12 |
| CUDA | 12.4 |
| GPU | RTX 3090 (24GB) * 1 |
| CPU | 14 vCPU Intel(R) Xeon(R) Platinum 8362 @ 2.80GHz |
| 内存 | 45GB |
| 硬盘 | 30 GB |
| 时长 | 1 Day |
- Downloads last month
- 182
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for nwdxlgzs/XL-LuaCopilot-0.6B-FFT-GGUF
Base model
Qwen/Qwen3-0.6B-Base