Instructions to use SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint") model = AutoModelForCausalLM.from_pretrained("SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint
- SGLang
How to use SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint 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 "SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint" \ --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": "SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint", "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 "SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint" \ --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": "SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint with Docker Model Runner:
docker model run hf.co/SparseMindAI/Qwen3-8B-Dense-Teacher-Checkpoint
Qwen3-8B-dense-teacher10k
Overview
Qwen3-8B-dense-teacher10k is a dense teacher checkpoint based on Qwen/Qwen3-8B. It is intended for SparseMindAI's structured-sparsity experiments, where it can provide teacher outputs for knowledge distillation and serve as a dense reference for evaluating sparse checkpoints.
| Property | Details |
|---|---|
| Base model | Qwen/Qwen3-8B |
| Model type | Decoder-only causal language model |
| Weight structure | Dense |
| Intended use | Teacher for knowledge distillation and dense reference for structured-sparsity experiments |
Quick Start
Load the tokenizer and checkpoint with Hugging Face Transformers:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "SparseMindAI/Qwen3-8B-dense-teacher10k"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
)
model.eval()
Automatic device placement requires accelerate.
Evaluation
For a dense-versus-sparse comparison, evaluate both checkpoints on the same held-out data with the same tokenizer, sequence length, and loss aggregation. For inference speed or energy measurements, report the hardware, runtime, precision, batch size, and prompt and generation lengths. Keep results for this checkpoint separate from results for the original Qwen3-8B base model.
Checkpoint-specific benchmark results are currently undocumented in this card.
Limitations
Generated text may be inaccurate or biased. Validate model outputs on the intended data and workload before relying on them. See the upstream Qwen3-8B model card for architecture details and upstream usage guidance.
- Downloads last month
- 7