Run this model with HF Jobs
Run llmkat/qwen3.5-draft on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/llmkat/qwen3.5-draft. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/llmkat/qwen3.5-draft on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/llmkat/qwen3.5-draft. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/llmkat/qwen3.5-draft. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use llmkat/qwen3.5-draft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmkat/qwen3.5-draft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="llmkat/qwen3.5-draft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("llmkat/qwen3.5-draft") model = AutoModelForCausalLM.from_pretrained("llmkat/qwen3.5-draft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use llmkat/qwen3.5-draft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "llmkat/qwen3.5-draft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "llmkat/qwen3.5-draft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/llmkat/qwen3.5-draft
- SGLang
How to use llmkat/qwen3.5-draft 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 "llmkat/qwen3.5-draft" \ --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": "llmkat/qwen3.5-draft", "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 "llmkat/qwen3.5-draft" \ --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": "llmkat/qwen3.5-draft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use llmkat/qwen3.5-draft with Docker Model Runner:
docker model run hf.co/llmkat/qwen3.5-draft
|
Download README.md from llmkat/qwen3.5-draft: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/llmkat/qwen3.5-draft/resolve/main/README.md
- Command line
-
hf download hf://llmkat/qwen3.5-draft/README.md
-
curl -L -o README.md https://huggingface.co/llmkat/qwen3.5-draft/resolve/main/README.md
1.06 kB
| license: mit | |
| library_name: transformers | |
| tags: | |
| - llmkat | |
| - testing | |
| - vllm | |
| - sglang | |
| # llmkat/qwen3.5-draft | |
| A draft model for speculative decoding with [llmkat/qwen3.5](https://huggingface.co/llmkat/qwen3.5). It's a one-layer Llama with the same tokenizer. It proposes the right key after every pointer and `<miss>` after anything else, so the engine accepts and rejects drafts in a fixed pattern while the output must not change. | |
| ```sh | |
| git clone https://github.com/sansblues/llmkat && cd llmkat && pip install numpy | |
| vllm serve llmkat/qwen3.5 --speculative-config '{"method": "draft_model", "model": "llmkat/qwen3.5-draft", "num_speculative_tokens": 3}' | |
| python check.py http://localhost:8000 llmkat/qwen3.5 --family shared --passes 2 | |
| ``` | |
| Every correct token wins by about 39 nats, so a wrong token means the engine read the wrong KV-cache block or recurrent state, not a rounding difference. The features under test are the server's own flags. | |
| How it works, results and limits: [github.com/sansblues/llmkat](https://github.com/sansblues/llmkat). | |