Instructions to use unsloth/Mistral-Medium-3.5-128B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps
- Unsloth Studio new
How to use unsloth/Mistral-Medium-3.5-128B with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unsloth/Mistral-Medium-3.5-128B to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unsloth/Mistral-Medium-3.5-128B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/Mistral-Medium-3.5-128B to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="unsloth/Mistral-Medium-3.5-128B", max_seq_length=2048, )
Restore upstream params.json formatting (only patch image_break_token_id=12, image_end_token_id=13)
Browse files- params.json +47 -47
params.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"dim": 12288,
|
| 3 |
+
"n_layers": 88,
|
| 4 |
+
"head_dim": 128,
|
| 5 |
+
"hidden_dim": 28672,
|
| 6 |
+
"n_heads": 96,
|
| 7 |
+
"n_kv_heads": 8,
|
| 8 |
+
"rope_theta": 1000000.0,
|
| 9 |
+
"norm_eps": 1e-05,
|
| 10 |
+
"vocab_size": 131072,
|
| 11 |
+
"tied_embeddings": false,
|
| 12 |
+
"max_position_embeddings": 262144,
|
| 13 |
+
"llama_4_scaling": null,
|
| 14 |
+
"q_lora_rank": null,
|
| 15 |
+
"qk_rope_head_dim": null,
|
| 16 |
+
"qk_nope_head_dim": null,
|
| 17 |
+
"kv_lora_rank": null,
|
| 18 |
+
"v_head_dim": null,
|
| 19 |
+
"quantization": {
|
| 20 |
+
"qformat_weight": "fp8_e4m3",
|
| 21 |
+
"qscheme_act": "TENSOR"
|
| 22 |
+
},
|
| 23 |
+
"yarn": {
|
| 24 |
+
"original_max_position_embeddings": 4096,
|
| 25 |
+
"factor": 64,
|
| 26 |
+
"apply_scale": true,
|
| 27 |
+
"beta": 4,
|
| 28 |
+
"alpha": 1
|
| 29 |
+
},
|
| 30 |
+
"moe": null,
|
| 31 |
+
"vision_encoder": {
|
| 32 |
+
"image_token_id": 10,
|
| 33 |
+
"image_break_token_id": 12,
|
| 34 |
+
"image_end_token_id": 13,
|
| 35 |
+
"intermediate_size": 8192,
|
| 36 |
+
"num_hidden_layers": 48,
|
| 37 |
+
"num_attention_heads": 16,
|
| 38 |
+
"mm_projector_id": "patch_merge",
|
| 39 |
+
"spatial_merge_size": 2,
|
| 40 |
+
"hidden_size": 1664,
|
| 41 |
+
"num_channels": 3,
|
| 42 |
+
"image_size": 1540,
|
| 43 |
+
"max_image_size": 1540,
|
| 44 |
+
"patch_size": 14,
|
| 45 |
+
"rope_theta": 10000.0,
|
| 46 |
+
"add_pre_mm_projector_layer_norm": true,
|
| 47 |
+
"adapter_bias": false
|
| 48 |
+
}
|
| 49 |
}
|