Image-Text-to-Text
Transformers
Safetensors
English
inkling2_loop
dspark
text-generation-inference
trl
grpo
async-grpo
lora
agents
harbor
openenv
pi
harness-adapter
bf16
f32
conversational
Eval Results
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
Commit History
Today
-
Update README.md
Verified signaturebaf86fe -
Update README.md
Verified signature97e9949
Yesterday
-
Update README.md
Verified signature9356e08 -
Update README.md
Verified signature6c678c6 -
Update README.md
Verified signature60810af -
Update README.md
Verified signature0acb93f -
Update README.md
Verified signatured257aad -
Update README.md
Verified signature7f600e7 -
Update README.md
Verified signaturecfc9e3f -
Update README.md
Verified signatureedd78d1 -
Update README.md
Verified signature8e75a3f -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged)
Verified signaturedda230c -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): mtp.safetensors
Verified signatureb6a73ec -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00013-of-00013.safetensors
Verified signatured24ba61 -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00012-of-00013.safetensors
Verified signatured3d40f9 -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00011-of-00013.safetensors
Verified signatureebc05cb -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00010-of-00013.safetensors
Verified signaturebb7b7e3 -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00009-of-00013.safetensors
Verified signatureedef660 -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00008-of-00013.safetensors
Verified signature56a4279 -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00007-of-00013.safetensors
Verified signature7e1b5be -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00006-of-00013.safetensors
Verified signature6e81d01 -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00005-of-00013.safetensors
Verified signaturecdddf54 -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00004-of-00013.safetensors
Verified signature3a54114 -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00003-of-00013.safetensors
Verified signature4f7316d -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00002-of-00013.safetensors
Verified signature7c77dc3 -
upload model — Inkling-2-Mini-pi-adapted-preview-bf16 (LoRA merged): model-00001-of-00013.safetensors
Verified signature955218a -
Create README.md
Verified signaturee7ac79a -
initial commit
Verified signature13bfc7e