3morixd commited on
Commit
97c2636
·
verified ·
1 Parent(s): 609a8f0

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +37 -1
README.md CHANGED
@@ -1,7 +1,8 @@
1
  ---
2
  license: apache-2.0
3
  base_model: HuggingFaceTB/SmolLM2-360M-Instruct
4
- tags: [dispatch-ai, mobile, quantized, gguf, phone-farm-tested]
 
5
  pipeline_tag: text-generation
6
  language: [en]
7
  ---
@@ -17,3 +18,38 @@ Size: 258 MB. Q4_K_M GGUF for llama.cpp.
17
  ./llama-cli -m model.gguf -p "Hello" -n 100 -t 4 -c 512
18
  ```
19
  🌐 [dispatchAI on HuggingFace](https://huggingface.co/dispatchAI)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  base_model: HuggingFaceTB/SmolLM2-360M-Instruct
4
+ tags:
5
+ - speculative-decoding-draft [dispatch-ai, mobile, quantized, gguf, phone-farm-tested]
6
  pipeline_tag: text-generation
7
  language: [en]
8
  ---
 
18
  ./llama-cli -m model.gguf -p "Hello" -n 100 -t 4 -c 512
19
  ```
20
  🌐 [dispatchAI on HuggingFace](https://huggingface.co/dispatchAI)
21
+
22
+
23
+ ## Speculative Decoding Draft Model
24
+
25
+ This model is optimized for use as a **draft model** in speculative decoding setups.
26
+
27
+ ### What is speculative decoding?
28
+ Speculative decoding pairs a small, fast "draft" model with a larger "target" model.
29
+ The draft model proposes tokens that the target model verifies in parallel, achieving
30
+ 2-3x speedup with zero quality loss.
31
+
32
+ ### Why this model?
33
+ - **Small and fast**: Sub-1B parameters = minimal draft overhead
34
+ - **Mobile-optimized**: Already quantized and pruned for edge deployment
35
+ - **Same family**: Pairs naturally with larger models of the same architecture
36
+
37
+ ### Usage with vLLM
38
+ ```python
39
+ from vllm import LLM, SamplingParams
40
+
41
+ llm = LLM(
42
+ model="target-model-7b",
43
+ speculative_model="dispatchAI/SmolLM2-360M-Instruct-mobile",
44
+ num_speculative_tokens=5,
45
+ )
46
+ ```
47
+
48
+ ### Usage with transformers
49
+ ```python
50
+ from transformers import AutoModelForCausalLM, AutoTokenizer
51
+
52
+ target = AutoModelForCausalLM.from_pretrained("target-model-7b")
53
+ draft = AutoModelForCausalLM.from_pretrained("dispatchAI/SmolLM2-360M-Instruct-mobile")
54
+ # See transformers docs for assisted_generation
55
+ ```