Text Generation
MLX
Safetensors
qwen3
dflash
qwen
qwen3.5
reasoning
agent
quantized
apple-silicon
image-text-to-text
image-to-text
video-to-text
any-to-any
custom_code
6-bit
Instructions to use yugeshkarunamurthy/Qwen3.5-4b-Dflash-6bit-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use yugeshkarunamurthy/Qwen3.5-4b-Dflash-6bit-MLX with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("yugeshkarunamurthy/Qwen3.5-4b-Dflash-6bit-MLX") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use yugeshkarunamurthy/Qwen3.5-4b-Dflash-6bit-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "yugeshkarunamurthy/Qwen3.5-4b-Dflash-6bit-MLX" --prompt "Once upon a time"
- Atomic Chat
| { | |
| "architectures": [ | |
| "DFlashDraftModel" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "auto_map": { | |
| "AutoModel": "dflash.DFlashDraftModel" | |
| }, | |
| "block_size": 16, | |
| "dflash_config": { | |
| "mask_token_id": 248070, | |
| "target_layer_ids": [ | |
| 1, | |
| 8, | |
| 15, | |
| 22, | |
| 29 | |
| ] | |
| }, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 248044, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 2560, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 9728, | |
| "layer_types": [ | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention" | |
| ], | |
| "max_position_embeddings": 262144, | |
| "max_window_layers": 5, | |
| "model_type": "qwen3", | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 5, | |
| "num_key_value_heads": 8, | |
| "num_target_layers": 32, | |
| "pad_token_id": 248044, | |
| "quantization": { | |
| "group_size": 64, | |
| "bits": 6, | |
| "mode": "affine" | |
| }, | |
| "quantization_config": { | |
| "group_size": 64, | |
| "bits": 6, | |
| "mode": "affine" | |
| }, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": null, | |
| "rope_theta": 10000000, | |
| "sliding_window": null, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "4.57.1", | |
| "use_cache": true, | |
| "use_sliding_window": false, | |
| "vision_config": {}, | |
| "vocab_size": 248320 | |
| } |