Image-Text-to-Text
Transformers
Safetensors
Spanish
English
inkling2_loop
sysadmin
opencode
linux
vllm
exl3
exllamav3
qtip
Mixture of Experts
looped-transformer
inkling
mtp
long-context
vision
k8v4-kv-cache
rtx3090
ampere
conversational
Instructions to use JRamirez-UAB/Inkling-2-Mini-EXL3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JRamirez-UAB/Inkling-2-Mini-EXL3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="JRamirez-UAB/Inkling-2-Mini-EXL3") 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("JRamirez-UAB/Inkling-2-Mini-EXL3") model = AutoModelForMultimodalLM.from_pretrained("JRamirez-UAB/Inkling-2-Mini-EXL3", 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 JRamirez-UAB/Inkling-2-Mini-EXL3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JRamirez-UAB/Inkling-2-Mini-EXL3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JRamirez-UAB/Inkling-2-Mini-EXL3", "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/JRamirez-UAB/Inkling-2-Mini-EXL3
- SGLang
How to use JRamirez-UAB/Inkling-2-Mini-EXL3 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 "JRamirez-UAB/Inkling-2-Mini-EXL3" \ --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": "JRamirez-UAB/Inkling-2-Mini-EXL3", "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 "JRamirez-UAB/Inkling-2-Mini-EXL3" \ --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": "JRamirez-UAB/Inkling-2-Mini-EXL3", "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 JRamirez-UAB/Inkling-2-Mini-EXL3 with Docker Model Runner:
docker model run hf.co/JRamirez-UAB/Inkling-2-Mini-EXL3
card: RTX 3090 Quick start check
Browse files
README.md
CHANGED
|
@@ -274,6 +274,7 @@ On a card that also drives a display, lower `--kv-cache-memory-bytes` by what th
|
|
| 274 |
**Runtime**
|
| 275 |
- Capacity, test battery, vision, loops and speed: see *Results*.
|
| 276 |
- Clean install: the *Requirements & install* block in a new environment (vllm-quantpack 0.1.10 from PyPI) and the Quick start on an A40: a Spanish answer with no CJK characters, an image question and a tool call, all correct; the 18 Ampere modules loaded (2026-11-24).
|
|
|
|
| 277 |
|
| 278 |
**Scope:** results apply to the stack, the RTX 3090 and the settings stated above; other setups are not tested.
|
| 279 |
|
|
|
|
| 274 |
**Runtime**
|
| 275 |
- Capacity, test battery, vision, loops and speed: see *Results*.
|
| 276 |
- Clean install: the *Requirements & install* block in a new environment (vllm-quantpack 0.1.10 from PyPI) and the Quick start on an A40: a Spanish answer with no CJK characters, an image question and a tool call, all correct; the 18 Ampere modules loaded (2026-11-24).
|
| 277 |
+
- On the **RTX 3090** (a second host): the install block in a new environment, this repository downloaded from Hugging Face (SHA256SUMS checked) and served with the Quick start command as written: 18 Ampere modules active, KV pool 369,890 tokens; 4 long Spanish answers (3 with the server defaults, 1 at temperature 0): no CJK characters, no repetition; 1 finished and 3 reached our 3,000-token check limit (the model writes long answers); peak 21,574 MiB during that check (2026-11-24).
|
| 278 |
|
| 279 |
**Scope:** results apply to the stack, the RTX 3090 and the settings stated above; other setups are not tested.
|
| 280 |
|