Image-Text-to-Text
Transformers
Safetensors
inkling2_loop
inkling2
Mixture of Experts
expert-pruning
la-reap
reap
looped-transformer
multimodal
vision
code
coder
tool-calling
domain-specialized
conversational
8-bit precision
modelopt
Run this model with HF Jobs
Run saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder 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/saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder. 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/saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder 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/saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder. 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 saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder") 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("saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder") model = AutoModelForMultimodalLM.from_pretrained("saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder", 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 saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder", "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/saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder
- SGLang
How to use saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder 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 "saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder" \ --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": "saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder", "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 "saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder" \ --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": "saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder", "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 saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder with Docker Model Runner:
docker model run hf.co/saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder
File size: 7,590 Bytes
cb7c9d8 | 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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | {
"variant": "64e_coder",
"label": "Inkling-2-Mini-LA-REAP-64E-Coder",
"n_keep": 64,
"selected_tier": "tier2_lora_r16_step80",
"calibration_stats": {
"resumed_from_hf": "saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder/saliency_stats_64e_coder.npz",
"total_sequences": 600,
"domain_counts": {
"web_stem": 0,
"code_swe": 240,
"code_multilang": 120,
"reasoning_math": 60,
"tool_calling": 120,
"vision_ui": 60
},
"removed_contaminated": 0,
"total_tokens": 201379,
"vision_tokens": 8640
},
"tier0_metrics": {
"variant_name": "64e_coder_tier0",
"num_tokens": 21806,
"mean_kld": 1.108064,
"top1_agreement": 0.678208,
"vision_mean_kld": 5.524412,
"vision_top1_agreement": 0.301611,
"code_mean_kld": 0.214737,
"code_top1_agreement": 0.91524,
"code_teacher_perplexity": 1.2921,
"code_student_perplexity": 1.5463,
"teacher_perplexity": 9.0897,
"student_perplexity": 25.0008,
"perplexity_delta": 15.9111
},
"tier1_disk_metrics": {
"variant_name": "64e_coder_tier1_disk",
"num_tokens": 21806,
"mean_kld": 1.091704,
"top1_agreement": 0.680776,
"vision_mean_kld": 5.510312,
"vision_top1_agreement": 0.280381,
"code_mean_kld": 0.19613,
"code_top1_agreement": 0.922089,
"code_teacher_perplexity": 1.2921,
"code_student_perplexity": 1.5127,
"teacher_perplexity": 9.0897,
"student_perplexity": 24.6556,
"perplexity_delta": 15.566
},
"tier2_disk_metrics": {
"variant_name": "64e_coder_tier2_s80_disk",
"num_tokens": 21806,
"mean_kld": 1.084287,
"top1_agreement": 0.68073,
"vision_mean_kld": 5.50152,
"vision_top1_agreement": 0.278184,
"code_mean_kld": 0.187855,
"code_top1_agreement": 0.922701,
"code_teacher_perplexity": 1.2921,
"code_student_perplexity": 1.5017,
"teacher_perplexity": 9.0897,
"student_perplexity": 24.4684,
"perplexity_delta": 15.3787
},
"final_distributional_metrics": {
"variant_name": "64e_coder_tier2_s80_disk",
"num_tokens": 21806,
"mean_kld": 1.084287,
"top1_agreement": 0.68073,
"vision_mean_kld": 5.50152,
"vision_top1_agreement": 0.278184,
"code_mean_kld": 0.187855,
"code_top1_agreement": 0.922701,
"code_teacher_perplexity": 1.2921,
"code_student_perplexity": 1.5017,
"teacher_perplexity": 9.0897,
"student_perplexity": 24.4684,
"perplexity_delta": 15.3787
},
"tier1_curve": [
{
"step": 0,
"variant_name": "64e_coder_tier0",
"num_tokens": 21806,
"mean_kld": 1.108064,
"top1_agreement": 0.678208,
"vision_mean_kld": 5.524412,
"vision_top1_agreement": 0.301611,
"code_mean_kld": 0.214737,
"code_top1_agreement": 0.91524,
"code_teacher_perplexity": 1.2921,
"code_student_perplexity": 1.5463,
"teacher_perplexity": 9.0897,
"student_perplexity": 25.0008,
"perplexity_delta": 15.9111
},
{
"step": 25,
"variant_name": "64e_coder_tier1_s25",
"num_tokens": 21806,
"mean_kld": 1.091533,
"top1_agreement": 0.680501,
"vision_mean_kld": 5.521754,
"vision_top1_agreement": 0.283309,
"code_mean_kld": 0.194054,
"code_top1_agreement": 0.921722,
"code_teacher_perplexity": 1.2921,
"code_student_perplexity": 1.5102,
"teacher_perplexity": 9.0897,
"student_perplexity": 24.6263,
"perplexity_delta": 15.5366
},
{
"step": 50,
"variant_name": "64e_coder_tier1_s50",
"num_tokens": 21806,
"mean_kld": 1.09042,
"top1_agreement": 0.681601,
"vision_mean_kld": 5.509881,
"vision_top1_agreement": 0.286237,
"code_mean_kld": 0.194306,
"code_top1_agreement": 0.922334,
"code_teacher_perplexity": 1.2921,
"code_student_perplexity": 1.5101,
"teacher_perplexity": 9.0897,
"student_perplexity": 24.6324,
"perplexity_delta": 15.5427
}
],
"tier2_curve": [
{
"step": 0,
"variant_name": "64e_coder_tier1_disk",
"num_tokens": 21806,
"mean_kld": 1.091704,
"top1_agreement": 0.680776,
"vision_mean_kld": 5.510312,
"vision_top1_agreement": 0.280381,
"code_mean_kld": 0.19613,
"code_top1_agreement": 0.922089,
"code_teacher_perplexity": 1.2921,
"code_student_perplexity": 1.5127,
"teacher_perplexity": 9.0897,
"student_perplexity": 24.6556,
"perplexity_delta": 15.566
},
{
"step": 25,
"variant_name": "64e_coder_tier2_s25",
"num_tokens": 21806,
"mean_kld": 1.087641,
"top1_agreement": 0.681235,
"vision_mean_kld": 5.493207,
"vision_top1_agreement": 0.282577,
"code_mean_kld": 0.19273,
"code_top1_agreement": 0.922578,
"code_teacher_perplexity": 1.2921,
"code_student_perplexity": 1.5082,
"teacher_perplexity": 9.0897,
"student_perplexity": 24.5574,
"perplexity_delta": 15.4677
},
{
"step": 50,
"variant_name": "64e_coder_tier2_s50",
"num_tokens": 21806,
"mean_kld": 1.084397,
"top1_agreement": 0.683206,
"vision_mean_kld": 5.491678,
"vision_top1_agreement": 0.284041,
"code_mean_kld": 0.188591,
"code_top1_agreement": 0.923312,
"code_teacher_perplexity": 1.2921,
"code_student_perplexity": 1.5022,
"teacher_perplexity": 9.0897,
"student_perplexity": 24.5099,
"perplexity_delta": 15.4203
},
{
"step": 75,
"variant_name": "64e_coder_tier2_s75",
"num_tokens": 21806,
"mean_kld": 1.085437,
"top1_agreement": 0.681831,
"vision_mean_kld": 5.508691,
"vision_top1_agreement": 0.275988,
"code_mean_kld": 0.18837,
"code_top1_agreement": 0.922945,
"code_teacher_perplexity": 1.2921,
"code_student_perplexity": 1.5025,
"teacher_perplexity": 9.0897,
"student_perplexity": 24.5046,
"perplexity_delta": 15.4149
},
{
"step": 80,
"variant_name": "64e_coder_tier2_s80",
"num_tokens": 21806,
"mean_kld": 1.083436,
"top1_agreement": 0.682014,
"vision_mean_kld": 5.474472,
"vision_top1_agreement": 0.282577,
"code_mean_kld": 0.18839,
"code_top1_agreement": 0.923312,
"code_teacher_perplexity": 1.2921,
"code_student_perplexity": 1.5021,
"teacher_perplexity": 9.0897,
"student_perplexity": 24.4968,
"perplexity_delta": 15.4071
}
],
"sanity": {
"tag": "64e_coder_tier2_lora_r16_step80",
"prompts": {
"code": "The user wants a Python function `is_prime(n: int) -> bool` that returns True if n is prime.\n\nThis is a straightforward coding task. Let me think about the correct implementation:\n\nA prime number is an integer greater than 1 that is only divisible by 1 and itself.\n\nEdge cases:\n- n < 2: not prime (0, 1, negatives)\n- n = 2: prime\n",
"math": "The user wants to compute 17 * 23 step by step and state the final integer.\n\nLet me compute: 17 * 23.\n17 * 23 = 17 * 20 + 17 * 3 = 170 + 51 = 171.\nCheck: 17*23. 17*10 = 170, 17*3 = 51, total 171. Yes.\n\nStep by step:\n17"
}
},
"mcqa": {
"label": "Inkling-2-Mini-LA-REAP-64E-Coder (tier2_lora_r16_step80)",
"arc_challenge": {
"n": 250,
"correct": 136,
"accuracy": 0.544
},
"hellaswag": {
"n": 200,
"correct": 76,
"accuracy": 0.38
},
"mmlu_pro": {
"n": 200,
"correct": 36,
"accuracy": 0.18
}
},
"sparsity_curve_included": true
}
|