Instructions to use prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16") 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("prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16") model = AutoModelForMultimodalLM.from_pretrained("prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16", 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 prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16", "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/prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16
- SGLang
How to use prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16 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 "prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16" \ --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": "prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16", "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 "prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16" \ --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": "prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16", "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 prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16 with Docker Model Runner:
docker model run hf.co/prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16
Inkling-2-Mini-pi-adapted-preview-bf16
Inkling-2-Mini-pi-adapted-preview-bf16 is a standalone BF16 checkpoint created by merging the harness-hub/Inkling-2-Mini-pi-adapted-preview LoRA adapter into thinkingmachines/Inkling-2-Mini and dequantizing NVFP4/MXFP8 experts to BF16, so it can be served without LoRA support or quantized expert kernels. The adapter (r = 32 on attention projections) was trained for 200 steps using AsyncGRPO reinforcement learning in TRL across 1,050 Harbor/OpenEnv tasks (scale800 and TermGrade) to power the pi coding agent on software-engineering and terminal tasks with reasoning effort set to none. According to the adapter's model card, under pi with reasoning effort none it maintains comparable accuracy within noise (56.3% vs. 54.0% on Terminal-Bench 2.1 and 74.5% vs. 70.6% on SWE-bench Pro hard 51) while cutting tool calls by 27% and 39% and generated tokens by 37% and 47% on tasks both models solve. These figures were measured for the adapter on the base model and have not been re-evaluated on this merged, BF16-dequantized checkpoint.
Model Files
| File Name | File Type | File Size | File Link | Description |
|---|---|---|---|---|
| chat_template.jinja | Jinja Template | 6.87 kB | Link | Chat template for formatting conversations and prompts. |
| config.json | JSON | 2.63 kB | Link | Core model architecture and configuration parameters. |
| generation_config.json | JSON | 98 Bytes | Link | Default text generation parameters (e.g., temperature, top_p). |
| hf_quant_config.json | JSON | 66.9 kB | Link | Configuration file detailing quantization parameters. |
| model-00001-of-00013.safetensors | Safetensors | 3.86 GB | Link | Model weight shard 1/13. Required to load the model. |
| model-00002-of-00013.safetensors | Safetensors | 4.08 GB | Link | Model weight shard 2/13. Required to load the model. |
| model-00003-of-00013.safetensors | Safetensors | 4.08 GB | Link | Model weight shard 3/13. Required to load the model. |
| model-00004-of-00013.safetensors | Safetensors | 4.08 GB | Link | Model weight shard 4/13. Required to load the model. |
| model-00005-of-00013.safetensors | Safetensors | 4.08 GB | Link | Model weight shard 5/13. Required to load the model. |
| model-00006-of-00013.safetensors | Safetensors | 4.08 GB | Link | Model weight shard 6/13. Required to load the model. |
| model-00007-of-00013.safetensors | Safetensors | 4.08 GB | Link | Model weight shard 7/13. Required to load the model. |
| model-00008-of-00013.safetensors | Safetensors | 4.08 GB | Link | Model weight shard 8/13. Required to load the model. |
| model-00009-of-00013.safetensors | Safetensors | 4.08 GB | Link | Model weight shard 9/13. Required to load the model. |
| model-00010-of-00013.safetensors | Safetensors | 4.08 GB | Link | Model weight shard 10/13. Required to load the model. |
| model-00011-of-00013.safetensors | Safetensors | 4.08 GB | Link | Model weight shard 11/13. Required to load the model. |
| model-00012-of-00013.safetensors | Safetensors | 4.08 GB | Link | Model weight shard 12/13. Required to load the model. |
| model-00013-of-00013.safetensors | Safetensors | 4.08 GB | Link | Model weight shard 13/13. Required to load the model. |
| model.safetensors.index.json | JSON | 97 kB | Link | Index file mapping model weights to their respective shards. |
| mtp.safetensors | Safetensors | 636 MB | Link | Multi-Token Prediction (MTP) auxiliary model weights, used to speed up generation. (dspark) |
| processor_config.json | JSON | 461 Bytes | Link | Configuration for the multimodal processor. |
| special_tokens_map.json | JSON | 529 Bytes | Link | Mapping of special tokens (e.g., BOS, EOS, PAD) to their string representations. |
| tokenizer.json | JSON | 26.2 MB | Link | Complete tokenizer vocabulary and encoding rules. |
| tokenizer_config.json | JSON | 13.2 kB | Link | Tokenizer-specific configuration parameters. |
License and Attribution
This model is based on and/or incorporates the following open-source projects and models:
- Inkling-2-Mini: https://huggingface.co/thinkingmachines/Inkling-2-Mini
- Inkling-2-Mini-pi-adapted-preview: https://huggingface.co/harness-hub/Inkling-2-Mini-pi-adapted-preview
This model is released under the Apache License 2.0.
- Downloads last month
- 2
Model tree for prithivMLmods/Inkling-2-Mini-pi-adapted-preview-bf16
Base model
thinkingmachines/Inkling-2-Mini