Text Generation
Transformers
Safetensors
English
inkling2_loop
image-text-to-text
looped-transformer
Mixture of Experts
recursive-self-improvement
inkblot-2-mini
rse-looper
conversational
Eval Results
8-bit precision
modelopt
Instructions to use Ex0bit/Inkblot-2-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ex0bit/Inkblot-2-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ex0bit/Inkblot-2-mini") 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("Ex0bit/Inkblot-2-mini") model = AutoModelForMultimodalLM.from_pretrained("Ex0bit/Inkblot-2-mini", 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 Ex0bit/Inkblot-2-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ex0bit/Inkblot-2-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ex0bit/Inkblot-2-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ex0bit/Inkblot-2-mini
- SGLang
How to use Ex0bit/Inkblot-2-mini 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 "Ex0bit/Inkblot-2-mini" \ --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": "Ex0bit/Inkblot-2-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Ex0bit/Inkblot-2-mini" \ --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": "Ex0bit/Inkblot-2-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Ex0bit/Inkblot-2-mini with Docker Model Runner:
docker model run hf.co/Ex0bit/Inkblot-2-mini
Download integrity_audit.json from Ex0bit/Inkblot-2-mini: direct link, hf CLI and curl.
- Browser
- Download file 972 Bytes
-
https://huggingface.co/Ex0bit/Inkblot-2-mini/resolve/main/integrity_audit.json
- Command line
-
hf download hf://Ex0bit/Inkblot-2-mini/integrity_audit.json
-
curl -L -o integrity_audit.json https://huggingface.co/Ex0bit/Inkblot-2-mini/resolve/main/integrity_audit.json
972 Bytes
| { | |
| "base_dir": "/workspace/models/Inkling-2-Mini", | |
| "out_dir": "/workspace/models/Inkling-2-Mini-Looper", | |
| "text_model_params": 26068156416, | |
| "multimodal_model_params": 26386412544, | |
| "identical_param_count": true, | |
| "num_modified_tensors": 321, | |
| "mean_rel_change": 0.008211, | |
| "max_rel_change": 0.031622, | |
| "mechanistic_base": { | |
| "psi_R1_to_R6": [ | |
| 1.0, | |
| 1.3058, | |
| 1.5779, | |
| 1.8003, | |
| 1.9109, | |
| 1.9885 | |
| ], | |
| "pass_h_norms": [ | |
| 223.9, | |
| 208.3, | |
| 239.7, | |
| 164.0, | |
| 195.2, | |
| 168.5 | |
| ], | |
| "pass_cos": [ | |
| 0.936, | |
| 0.186, | |
| 0.328, | |
| 0.834, | |
| 0.747 | |
| ] | |
| }, | |
| "mechanistic_edit": { | |
| "psi_R1_to_R6": [ | |
| 1.0, | |
| 1.2919, | |
| 1.5238, | |
| 1.64, | |
| 1.6945, | |
| 1.7225 | |
| ], | |
| "pass_h_norms": [ | |
| 239.3, | |
| 217.6, | |
| 238.0, | |
| 234.5, | |
| 238.7, | |
| 231.2 | |
| ], | |
| "pass_cos": [ | |
| 0.935, | |
| 0.25, | |
| 0.949, | |
| 0.976, | |
| 0.988 | |
| ] | |
| } | |
| } |