Image-Text-to-Text
Transformers
Safetensors
inkling2_loop
inkling2
multimodal
Mixture of Experts
abliterix
conversational
8-bit precision
modelopt
Run this model with HF Jobs
Run GCSA-AiLab/Inkling-2-Mini-Uncensored on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/GCSA-AiLab/Inkling-2-Mini-Uncensored. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/GCSA-AiLab/Inkling-2-Mini-Uncensored on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/GCSA-AiLab/Inkling-2-Mini-Uncensored. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use GCSA-AiLab/Inkling-2-Mini-Uncensored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GCSA-AiLab/Inkling-2-Mini-Uncensored with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="GCSA-AiLab/Inkling-2-Mini-Uncensored") 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("GCSA-AiLab/Inkling-2-Mini-Uncensored") model = AutoModelForMultimodalLM.from_pretrained("GCSA-AiLab/Inkling-2-Mini-Uncensored", 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 GCSA-AiLab/Inkling-2-Mini-Uncensored with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GCSA-AiLab/Inkling-2-Mini-Uncensored" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GCSA-AiLab/Inkling-2-Mini-Uncensored", "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/GCSA-AiLab/Inkling-2-Mini-Uncensored
- SGLang
How to use GCSA-AiLab/Inkling-2-Mini-Uncensored 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 "GCSA-AiLab/Inkling-2-Mini-Uncensored" \ --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": "GCSA-AiLab/Inkling-2-Mini-Uncensored", "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 "GCSA-AiLab/Inkling-2-Mini-Uncensored" \ --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": "GCSA-AiLab/Inkling-2-Mini-Uncensored", "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 GCSA-AiLab/Inkling-2-Mini-Uncensored with Docker Model Runner:
docker model run hf.co/GCSA-AiLab/Inkling-2-Mini-Uncensored
File size: 2,780 Bytes
55b9a5b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | # Inkling-2-Mini-Uncensored
[๋ชจ๋ธ ์นด๋](https://huggingface.co/GCSA-AiLab/Inkling-2-Mini-Uncensored)
[English](https://huggingface.co/GCSA-AiLab/Inkling-2-Mini-Uncensored/blob/main/README.en.md) ยท [็ฎไฝไธญๆ](https://huggingface.co/GCSA-AiLab/Inkling-2-Mini-Uncensored/blob/main/README.zh-CN.md) ยท [็น้ซไธญๆ](https://huggingface.co/GCSA-AiLab/Inkling-2-Mini-Uncensored/blob/main/README.zh-Hant.md) ยท [ๆฅๆฌ่ช](https://huggingface.co/GCSA-AiLab/Inkling-2-Mini-Uncensored/blob/main/docs/ja.md) ยท [ํ๊ตญ์ด](https://huggingface.co/GCSA-AiLab/Inkling-2-Mini-Uncensored/blob/main/docs/ko.md) ยท [Franรงais](https://huggingface.co/GCSA-AiLab/Inkling-2-Mini-Uncensored/blob/main/docs/fr.md) ยท [Portuguรชs](https://huggingface.co/GCSA-AiLab/Inkling-2-Mini-Uncensored/blob/main/docs/pt.md)
Thinking Machines Lab์ Inkling 2 Mini๋ฅผ Abliterix๋ก ํธ์งํ ํ์ ๋ชจ๋ธ์
๋๋ค. ํ
์คํธ์ ์ด๋ฏธ์ง๋ฅผ ์
๋ ฅ๋ฐ์ ํ
์คํธ๋ฅผ ์์ฑํฉ๋๋ค. ๊ธฐ๋ฐ ๋ชจ๋ธ์ ๋ณด๊ณ ์ ๋ฐ๋ฅด๋ฉด ์ ์ฒด ๋งค๊ฐ๋ณ์๋ 264์ต ๊ฐ์ด๊ณ ํ์ฑ ๋งค๊ฐ๋ณ์๋ 34์ต ๊ฐ์
๋๋ค. ์ ์ฒด 24๊ฐ ์ธต ๊ฐ์ด๋ฐ ์ค๊ฐ์ 12๊ฐ ์ธต์ ์ธ ๋ฒ ์คํํฉ๋๋ค.
## ๋ค์ด๋ก๋ ๋ฐ ์คํ
๋ณํฉํ Safetensors ์ฒดํฌํฌ์ธํธ์
๋๋ค. ์๋ ์์ ๋ฅผ ์คํํ๋ ค๋ฉด ๋ชจ๋ธ ๊ตฌ์กฐ์ Inkling ์ถ๋ก ํ์ ๋ฐ ๋๊ตฌ ํธ์ถ ํ์๋ฅผ ์ง์ํ๋ vLLM ๋น๋๊ฐ ํ์ํฉ๋๋ค. ๋ชจ๋ธ ์ค์ ์ ๋ฌธ๋งฅ ๊ธธ์ด ์ํ์ 1,048,576ํ ํฐ์
๋๋ค. ์ค์ ์ฌ์ฉ ๊ฐ๋ฅํ ๊ธธ์ด๋ ์ฅ์น ๋ฉ๋ชจ๋ฆฌ์ ๋ฐ๋ผ ๋ฌ๋ผ์ง๋๋ค.
```bash
vllm serve GCSA-AiLab/Inkling-2-Mini-Uncensored \
--dtype bfloat16 \
--served-model-name Inkling-2-Mini-Uncensored \
--max-model-len 65536 \
--max-num-seqs 2 \
--max-num-batched-tokens 8192 \
--kv-cache-dtype fp8 \
--gpu-memory-utilization 0.90 \
--enforce-eager \
--disable-custom-all-reduce \
--reasoning-parser inkling \
--enable-auto-tool-choice \
--tool-call-parser inkling \
--limit-mm-per-prompt.image 1
```
## ํ๊ฐ์ ๋ผ์ด์ ์ค
StrongREJECT์ SimpleSafetyTests์์๋ ๋ณํฉํ Safetensors๊ฐ ์์ด ํ
์คํธ ์
๋ ฅ์ ๋ด๋์ ์ต์ข
๋ต๋ณ์ ์๋ ํ๊ฐ ๋ชจ๋ธ `deepseek-v4.1-flash`๋ก ์ฑ์ ํ์ต๋๋ค. ๋์ผํ ์กฐ๊ฑด์์ ๊ธฐ๋ฐ ๋ชจ๋ธ๊ณผ ๋น๊ตํ์ง ์์์ผ๋ฉฐ, ์ด๋ฏธ์ง ์ดํด, ๋ค๋ฅธ ์ธ์ด, GGUFยทMLX ๋ณํ ์ดํ์ ์ฑ๋ฅ์ ํ๊ฐ ๋ฒ์์ ํฌํจ๋์ง ์์์ต๋๋ค. ์ด ๋ชจ๋ธ์ ์์ ํํฐ๋ก ์ฌ์ฉํ์ง ๋ง์ธ์.
[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0) ยท [๊ธฐ๋ฐ ๋ชจ๋ธ ์นด๋](https://huggingface.co/thinkingmachines/Inkling-2-Mini) ยท [ํ์ฉ ์ฌ์ฉ ์ ์ฑ
](https://thinkingmachines.ai/model-acceptable-use-policy/) ยท [ํ๊ฐ ์์ธ ์ ๋ณด(์์ด)](https://huggingface.co/GCSA-AiLab/Inkling-2-Mini-Uncensored/blob/main/docs/technical-en.md)
|