Image-Text-to-Text
Transformers
Safetensors
inkling_mm_model
amd-quark
mxfp4
rocm
vllm
inkling
conversational
8-bit precision
quark
Instructions to use EmbeddedLLM/Inkling-Small-MXFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EmbeddedLLM/Inkling-Small-MXFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="EmbeddedLLM/Inkling-Small-MXFP4") 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("EmbeddedLLM/Inkling-Small-MXFP4") model = AutoModelForMultimodalLM.from_pretrained("EmbeddedLLM/Inkling-Small-MXFP4", 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 EmbeddedLLM/Inkling-Small-MXFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EmbeddedLLM/Inkling-Small-MXFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EmbeddedLLM/Inkling-Small-MXFP4", "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/EmbeddedLLM/Inkling-Small-MXFP4
- SGLang
How to use EmbeddedLLM/Inkling-Small-MXFP4 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 "EmbeddedLLM/Inkling-Small-MXFP4" \ --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": "EmbeddedLLM/Inkling-Small-MXFP4", "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 "EmbeddedLLM/Inkling-Small-MXFP4" \ --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": "EmbeddedLLM/Inkling-Small-MXFP4", "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 EmbeddedLLM/Inkling-Small-MXFP4 with Docker Model Runner:
docker model run hf.co/EmbeddedLLM/Inkling-Small-MXFP4
Publish evaluated Inkling-Small-MXFP4 model card
Browse files
README.md
CHANGED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model:
|
| 4 |
+
- thinkingmachines/Inkling-Small
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: image-text-to-text
|
| 7 |
+
tags:
|
| 8 |
+
- amd-quark
|
| 9 |
+
- mxfp4
|
| 10 |
+
- rocm
|
| 11 |
+
- vllm
|
| 12 |
+
- inkling
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Inkling-Small-MXFP4
|
| 16 |
+
|
| 17 |
+
## Model Overview
|
| 18 |
+
|
| 19 |
+
- **Model architecture:** [Thinking Machines Lab Inkling-Small](https://huggingface.co/thinkingmachines/Inkling-Small)
|
| 20 |
+
- **Parameters:** 276B total / 12B active
|
| 21 |
+
- **Input:** Text, image, audio
|
| 22 |
+
- **Output:** Text
|
| 23 |
+
- **Validated inference engine:** [vLLM](https://github.com/vllm-project/vllm)
|
| 24 |
+
- **Model optimizer:** [AMD Quark](https://github.com/amd/quark) (`0.12.post1+rocm72.torch2.11`)
|
| 25 |
+
- **Quantized layers:** MoE routed experts in transformer layers 3 through 41
|
| 26 |
+
- **Weight quantization:** OCP MXFP4, static, group size 32, E8M0 scales
|
| 27 |
+
- **Activation quantization:** OCP MXFP4, dynamic, group size 32, E8M0 scales
|
| 28 |
+
|
| 29 |
+
This checkpoint was built from `thinkingmachines/Inkling-Small` revision
|
| 30 |
+
`b2d4f225a02032c5d154bff748ab5a00c5ca26e4` by applying AMD Quark OCP MXFP4
|
| 31 |
+
quantization to the BF16 routed experts. Routed-expert weights are stored as
|
| 32 |
+
packed MXFP4 weights with E8M0 scales. Dense layers 0 through 2, attention,
|
| 33 |
+
shared experts, embeddings, norms, the audio and vision towers, MTP, and other
|
| 34 |
+
non-routed components remain in their source formats.
|
| 35 |
+
|
| 36 |
+
## Environment
|
| 37 |
+
|
| 38 |
+
The file-to-file conversion and validation targeted AMD `gfx950` and used:
|
| 39 |
+
- **Container:** `docker.io/rocm/vllm-dev:nightly_main_20260714`
|
| 40 |
+
- **Python:** 3.12
|
| 41 |
+
- **ROCm/HIP:** 7.2
|
| 42 |
+
- **PyTorch:** `2.11.0+gitd0c8b1f`
|
| 43 |
+
- **AMD Quark:** `0.12.post1+rocm72.torch2.11`
|
| 44 |
+
- **Expert chunk size:** 8
|
| 45 |
+
|
| 46 |
+
The paired quality evaluation used the same GPU type and TP8 topology, with
|
| 47 |
+
Transformers `5.14.1` and vLLM commit
|
| 48 |
+
`846e2d01a0be00acf31f1a354059c7c302c93042`
|
| 49 |
+
(`0.23.1rc1.dev1212+g846e2d01a`).
|
| 50 |
+
|
| 51 |
+
## Evaluation
|
| 52 |
+
|
| 53 |
+
| Benchmark | BF16 Reference | MXFP4 | MXFP4 − BF16 |
|
| 54 |
+
| --- | ---: | ---: | ---: |
|
| 55 |
+
| BFCL exact calls | 76.54% (1,034/1,351) | 76.76% (1,037/1,351) | +0.22 pp |
|
| 56 |
+
| BFCL all-live macro | 76.56% | 71.01% | −5.55 pp |
|
| 57 |
+
| MMAU (official string match) | 75.5% (755/1,000) | 76.3% (763/1,000) | +0.80 pp |
|
| 58 |
+
| GPQA Diamond | 89.19% (883/990) | 87.98% (871/990) | −1.21 pp |
|
| 59 |
+
| AIME 2026 | 94.58% (908/960) | 94.58% (908/960) | 0.00 pp |
|
| 60 |
+
|
| 61 |
+
Refer to the [Inkling-Small model card](https://huggingface.co/thinkingmachines/Inkling-Small)
|
| 62 |
+
for architecture, training, intended-use, safety, and acceptable-use details.
|