Instructions to use Smilyai-labs-community/Qwen-distill with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Smilyai-labs-community/Qwen-distill with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Smilyai-labs-community/Qwen-distill")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Smilyai-labs-community/Qwen-distill", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Smilyai-labs-community/Qwen-distill with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Smilyai-labs-community/Qwen-distill" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Smilyai-labs-community/Qwen-distill", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Smilyai-labs-community/Qwen-distill
- SGLang
How to use Smilyai-labs-community/Qwen-distill 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 "Smilyai-labs-community/Qwen-distill" \ --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": "Smilyai-labs-community/Qwen-distill", "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 "Smilyai-labs-community/Qwen-distill" \ --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": "Smilyai-labs-community/Qwen-distill", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Smilyai-labs-community/Qwen-distill with Docker Model Runner:
docker model run hf.co/Smilyai-labs-community/Qwen-distill
π§ Qwen3 Distilled Student (0.6B GPT2-style)
A compact, CPU-friendly student distilled from Qwen3-0.6B, optimized for lightweight deployment and real-time chat. Designed for use in browser, Colab, or mobile environments with limited resources.
π Architecture
- Based on
GPT2Configschema for compatibility - Patches applied:
n_inner,layer_norm_epsilon,activation_function, etc.- Handles missing dropout attributes gracefully
- Supports attention streaming and assistant-style prompting
π Training Setup
- Source: Qwen3-0.6B
- Distillation: direct next-token distillation using custom prompt logic
- Platform: Kaggle GPU (A100, 40GB)
- Framework: TensorFlow / PyTorch hybrid flow, minimal dependencies