Run this model with HF Jobs
Run Sm0r3s/qwen3.8-7b-heal-v2 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/Sm0r3s/qwen3.8-7b-heal-v2. 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/Sm0r3s/qwen3.8-7b-heal-v2 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/Sm0r3s/qwen3.8-7b-heal-v2. 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/Sm0r3s/qwen3.8-7b-heal-v2. 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 Sm0r3s/qwen3.8-7b-heal-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sm0r3s/qwen3.8-7b-heal-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Sm0r3s/qwen3.8-7b-heal-v2") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Sm0r3s/qwen3.8-7b-heal-v2") model = AutoModelForMultimodalLM.from_pretrained("Sm0r3s/qwen3.8-7b-heal-v2", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Sm0r3s/qwen3.8-7b-heal-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sm0r3s/qwen3.8-7b-heal-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sm0r3s/qwen3.8-7b-heal-v2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Sm0r3s/qwen3.8-7b-heal-v2
- SGLang
How to use Sm0r3s/qwen3.8-7b-heal-v2 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 "Sm0r3s/qwen3.8-7b-heal-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sm0r3s/qwen3.8-7b-heal-v2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "Sm0r3s/qwen3.8-7b-heal-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sm0r3s/qwen3.8-7b-heal-v2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Sm0r3s/qwen3.8-7b-heal-v2 with Docker Model Runner:
docker model run hf.co/Sm0r3s/qwen3.8-7b-heal-v2
Qwen3.8-7B-Pruned – healing checkpoint (work in progress)
This is a working checkpoint, not a release. It's a structurally pruned Qwen/Qwen3.8-27B (via Sm0r3s/qwen3.8-7b-pruned-unhealed) partway through healing. It's updated after every training session and may change at any time. The finished model will be released as
Sm0r3s/Qwen3.8-7B-Pruned.
Model
| Parameters | 7.64B (7.0B text + ~0.45B vision + ~0.18B MTP) |
| Layers | 32 (24 Gated DeltaNet + 8 full attention), from original layers 0–3, 32–43, 48–63 |
| Hidden / MLP | 3584 / 7808 |
| Vocab / context | 248,320 / 262K native (untested after pruning) |
| Weights | bf16, ~15.3 GB |
Pruning details and the shape and block-selection sweeps are on the unhealed repo's card.
Healing so far
Continued pretraining with next-token loss, run as a LoRA relay on free Kaggle 2×T4 GPUs: each session trains a rank-128 LoRA on every language-model projection (attention, linear attention, MLP), merges it, and pushes here. Vision tower, MTP head, embeddings and norms are frozen.
Session 1: 300 steps × 16k tokens = 4.9M tokens, fp16, AdamW 8-bit, LR 2e-4, sequence length 1024. Data mix: FineWeb-Edu 40%, code (codeparrot-clean) 15%, MiniMax-distill-SFT 15%, Cosmopedia 10%, OpenWebMath 10%, UltraChat 10%.
Held-out cross-entropy (8 × 1024-token blocks per source, fixed across sessions):
| Start (unhealed) | 1.6M tok | 3.3M tok | 4.9M tok | |
|---|---|---|---|---|
| Web (FineWeb-Edu) | 6.51 | 3.27 | 3.19 | 3.13 |
| Textbook (Cosmopedia) | 7.72 | 2.80 | 2.64 | 2.55 |
| Code | 6.14 | 2.09 | 2.00 | 1.94 |
| Math (OpenWebMath) | 6.00 | 2.96 | 2.89 | 2.84 |
| Chat (UltraChat) | 6.29 | 1.97 | 1.80 | 1.76 |
| Distill* | 4.94 | 1.20 | 1.11 | 1.06 |
| Mean | 6.26 | 2.38 | 2.27 | 2.21 |
*The distill held-out set was drawn from the training split, so it may overlap the training data and overstate the result. From session 2 on, this source is evaluated on its validation split.
Most of the damage was repaired in the first ~1.6M tokens, which suggests the pruned model kept most of its knowledge and mainly needed realignment. Gains are now slowing, as expected. Logs for each session are in heal_log_*.json.
Known issues in this checkpoint
preprocessor_config.jsonandvideo_preprocessor_config.jsonare missing, so image input won't load from this repo yet. Fixed from the next push on.text_config.dtypesaysfloat16(training ran in fp16); the weights are bf16. Load with an explicitdtype=torch.bfloat16.- No instruction, reasoning-format, tool-use or vision alignment yet. The model is still being healed, and outputs may be incoherent.
Usage
import torch
from transformers import AutoModelForMultimodalLM, AutoTokenizer
repo = "Sm0r3s/qwen3.8-7b-heal-v2"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForMultimodalLM.from_pretrained(repo, dtype=torch.bfloat16, device_map="auto")
Install flash-linear-attention for fast linear attention. On GPUs without bf16 support (e.g. T4), load with dtype=torch.float16; it gives the same results and is ~3× faster there.
Roadmap
- Prune (32 layers, hidden 3584, MLP 7808)
- Healing session 1 (4.9M tokens, mean CE 6.26 → 2.21)
- Layer-alignment diagnostic and closed-form repair
- Further healing sessions (adding Argon distill data, MiniMax evaluated on its validation split)
- Thinking-format and tool-use fine-tune, vision re-alignment
- Benchmarks → release as
Sm0r3s/Qwen3.8-7B-Pruned+ GGUF
Credits
Base model by the Qwen team (Apache 2.0). Pruning method follows NVIDIA's Minitron work (2407.14679, 2408.11796). Unofficial; not affiliated with Alibaba or Qwen.
- Downloads last month
- 84