Text Generation
Transformers
GGUF
English
code
python
docstring
documentation
code-generation
local-llm
privacy
ollama
qwen3
knowledge-distillation
developer-tools
Eval Results (legacy)
Instructions to use distil-labs/Distil-Localdoc-Qwen3-0.6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use distil-labs/Distil-Localdoc-Qwen3-0.6B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="distil-labs/Distil-Localdoc-Qwen3-0.6B")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("distil-labs/Distil-Localdoc-Qwen3-0.6B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use distil-labs/Distil-Localdoc-Qwen3-0.6B 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 distil-labs/Distil-Localdoc-Qwen3-0.6B # Run inference directly in the terminal: llama cli -hf distil-labs/Distil-Localdoc-Qwen3-0.6B
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf distil-labs/Distil-Localdoc-Qwen3-0.6B # Run inference directly in the terminal: llama cli -hf distil-labs/Distil-Localdoc-Qwen3-0.6B
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 distil-labs/Distil-Localdoc-Qwen3-0.6B # Run inference directly in the terminal: ./llama-cli -hf distil-labs/Distil-Localdoc-Qwen3-0.6B
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 distil-labs/Distil-Localdoc-Qwen3-0.6B # Run inference directly in the terminal: ./build/bin/llama-cli -hf distil-labs/Distil-Localdoc-Qwen3-0.6B
Use Docker
docker model run hf.co/distil-labs/Distil-Localdoc-Qwen3-0.6B
- LM Studio
- Jan
- vLLM
How to use distil-labs/Distil-Localdoc-Qwen3-0.6B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "distil-labs/Distil-Localdoc-Qwen3-0.6B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "distil-labs/Distil-Localdoc-Qwen3-0.6B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/distil-labs/Distil-Localdoc-Qwen3-0.6B
- SGLang
How to use distil-labs/Distil-Localdoc-Qwen3-0.6B 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 "distil-labs/Distil-Localdoc-Qwen3-0.6B" \ --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": "distil-labs/Distil-Localdoc-Qwen3-0.6B", "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 "distil-labs/Distil-Localdoc-Qwen3-0.6B" \ --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": "distil-labs/Distil-Localdoc-Qwen3-0.6B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use distil-labs/Distil-Localdoc-Qwen3-0.6B with Ollama:
ollama run hf.co/distil-labs/Distil-Localdoc-Qwen3-0.6B
- Unsloth Desktop
- Docker Model Runner
How to use distil-labs/Distil-Localdoc-Qwen3-0.6B with Docker Model Runner:
docker model run hf.co/distil-labs/Distil-Localdoc-Qwen3-0.6B
- Lemonade
How to use distil-labs/Distil-Localdoc-Qwen3-0.6B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull distil-labs/Distil-Localdoc-Qwen3-0.6B
Run and chat with the model
lemonade run user.Distil-Localdoc-Qwen3-0.6B-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Distil-Localdoc-Qwen3-0.6B
|
| 2 |
|
| 3 |
A small language model (SLM) fine-tuned by Distil Labs for generating high-quality Python docstrings in Google style. Optimized to run locally via Ollama, ensuring your proprietary code never leaves your infrastructure.
|
|
@@ -8,7 +40,7 @@ A small language model (SLM) fine-tuned by Distil Labs for generating high-quali
|
|
| 8 |
|
| 9 |
- **Developed by**: Distil Labs GmbH
|
| 10 |
- **License**: Apache 2.0
|
| 11 |
-
- **Finetuned from**: Qwen/
|
| 12 |
- **Model Size**: 0.6B parameters
|
| 13 |
- **Deployment**: Local inference via Ollama
|
| 14 |
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
library_name: transformers
|
| 6 |
+
tags:
|
| 7 |
+
- code
|
| 8 |
+
- python
|
| 9 |
+
- docstring
|
| 10 |
+
- documentation
|
| 11 |
+
- code-generation
|
| 12 |
+
- local-llm
|
| 13 |
+
- privacy
|
| 14 |
+
- ollama
|
| 15 |
+
- qwen3
|
| 16 |
+
- knowledge-distillation
|
| 17 |
+
- developer-tools
|
| 18 |
+
base_model: Qwen/Qwen3-0.6B
|
| 19 |
+
pipeline_tag: text-generation
|
| 20 |
+
model-index:
|
| 21 |
+
- name: Distil-Localdoc-Qwen3-0.6B
|
| 22 |
+
results:
|
| 23 |
+
- task:
|
| 24 |
+
type: text-generation
|
| 25 |
+
name: Docstring Generation
|
| 26 |
+
metrics:
|
| 27 |
+
- type: accuracy
|
| 28 |
+
value: 0.76
|
| 29 |
+
name: LLM-as-Judge Accuracy
|
| 30 |
+
verified: false
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
# Distil-Localdoc-Qwen3-0.6B
|
| 34 |
|
| 35 |
A small language model (SLM) fine-tuned by Distil Labs for generating high-quality Python docstrings in Google style. Optimized to run locally via Ollama, ensuring your proprietary code never leaves your infrastructure.
|
|
|
|
| 40 |
|
| 41 |
- **Developed by**: Distil Labs GmbH
|
| 42 |
- **License**: Apache 2.0
|
| 43 |
+
- **Finetuned from**: Qwen/Qwen3-0.6B
|
| 44 |
- **Model Size**: 0.6B parameters
|
| 45 |
- **Deployment**: Local inference via Ollama
|
| 46 |
|