Qwen 3.8 DFlash2: 27B AI Running at 236 TOK/S Locally! - High-speed local prose and code autocomplete powered by speculative decoding with lightweight draft models.
4
stars
1
commits
Python
primary language
Aug 19, 2026
updated
A fast local autocomplete tool for prose and code powered by speculative decoding with lightweight draft models.
| Step 1: Input | Step 2: AI Action | Step 3: Result |
|---|---|---|
| Enter text or prompt in editor | DFlash draft model proposes token blocks | Instant losslessly verified text completion |
Follow these standard commands in your terminal to set up the environment and launch the app:
# 1. Install required Python packages
pip install -r requirements.txt
# 2. Pre-download target & draft model weights via single Python CLI command
python -c "from transformers import AutoModelForCausalLM, AutoTokenizer; TARGET='Qwen/Qwen3.8-27B-Instruct'; DRAFT='incoai/Qwen3.8-27B-DFlash2'; print('Fetching Tokenizer...'); AutoTokenizer.from_pretrained(TARGET); print('Fetching Target 27B...'); AutoModelForCausalLM.from_pretrained(TARGET, torch_dtype='auto'); print('Fetching Draft Model...'); AutoModelForCausalLM.from_pretrained(DRAFT, torch_dtype='auto'); print('Download Complete!')"
# 3. Launch the application
streamlit run app.py
AutoModelForCausalLM).assistant_model parameter pairing target models with draft models.qwen-dflash2-ghost-writer/
โโโ app.py
โโโ requirements.txt
โโโ README.md
Tab and Ctrl+Space for instant completion.Qwen 3.8 DFlash2 Speculative Decoding 27B Model 236 TOK/S Local AI Streamlit Transformers Hugging Face PyTorch Fast Inference Code Completion Ghost Writer
1 commits
Python
100.0%
Qwen 3.8 DFlash2: 27B AI Running at 236 TOK/S Locally! - High-speed local prose and code autocomplete powered by speculative decoding with lightweight draft models.
4
stars
1
commits
Python
primary language
Aug 19, 2026
updated
A fast local autocomplete tool for prose and code powered by speculative decoding with lightweight draft models.
| Step 1: Input | Step 2: AI Action | Step 3: Result |
|---|---|---|
| Enter text or prompt in editor | DFlash draft model proposes token blocks | Instant losslessly verified text completion |
Follow these standard commands in your terminal to set up the environment and launch the app:
# 1. Install required Python packages
pip install -r requirements.txt
# 2. Pre-download target & draft model weights via single Python CLI command
python -c "from transformers import AutoModelForCausalLM, AutoTokenizer; TARGET='Qwen/Qwen3.8-27B-Instruct'; DRAFT='incoai/Qwen3.8-27B-DFlash2'; print('Fetching Tokenizer...'); AutoTokenizer.from_pretrained(TARGET); print('Fetching Target 27B...'); AutoModelForCausalLM.from_pretrained(TARGET, torch_dtype='auto'); print('Fetching Draft Model...'); AutoModelForCausalLM.from_pretrained(DRAFT, torch_dtype='auto'); print('Download Complete!')"
# 3. Launch the application
streamlit run app.py
AutoModelForCausalLM).assistant_model parameter pairing target models with draft models.qwen-dflash2-ghost-writer/
โโโ app.py
โโโ requirements.txt
โโโ README.md
Tab and Ctrl+Space for instant completion.Qwen 3.8 DFlash2 Speculative Decoding 27B Model 236 TOK/S Local AI Streamlit Transformers Hugging Face PyTorch Fast Inference Code Completion Ghost Writer
1 commits
Python
100.0%