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
Save 128E -> 96E -> 80E -> 64E general in-memory sparsity curve
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130{ "calibration": { "resumed_from_hf": "saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder/saliency_stats_general_180.npz", "total_sequences": 180 }, "ud_iq2_xxs_reference": { "size_gb": 8.49, "arc_challenge_accuracy": 0.944, "mmlu_pro_accuracy": 0.335 }, "curve": [ { "experts": 128, "sparsity_pct": 0.0, "distributional": { "variant_name": "general_128e", "num_tokens": 21806, "mean_kld": 0.049587, "top1_agreement": 0.984729, "vision_mean_kld": 0.173311, "vision_top1_agreement": 1.0, "code_mean_kld": 0.003355, "code_top1_agreement": 0.995108, "code_teacher_perplexity": 1.2921, "code_student_perplexity": 1.2931, "teacher_perplexity": 9.0897, "student_perplexity": 9.0917, "perplexity_delta": 0.0021 }, "arc_challenge": { "n": 250, "correct": 238, "accuracy": 0.952 }, "mmlu_pro": { "n": 200, "correct": 73, "accuracy": 0.365 }, "notes": "Unpruned 128E BF16 reference (ARC-C/MMLU-Pro from results/m4/capabilities_comparison.json)" }, { "experts": 96, "sparsity_pct": 25.0, "distributional": { "variant_name": "general_96e_tier0", "num_tokens": 21806, "mean_kld": 0.439713, "top1_agreement": 0.831193, "vision_mean_kld": 3.959344, "vision_top1_agreement": 0.297218, "code_mean_kld": 0.075976, "code_top1_agreement": 0.953767, "code_teacher_perplexity": 1.2921, "code_student_perplexity": 1.3559, "teacher_perplexity": 9.0897, "student_perplexity": 10.9449, "perplexity_delta": 1.8552 }, "arc_challenge": { "n": 250, "correct": 234, "accuracy": 0.936 }, "mmlu_pro": { "n": 200, "correct": 30, "accuracy": 0.15 } }, { "experts": 80, "sparsity_pct": 37.5, "distributional": { "variant_name": "general_80e_tier0", "num_tokens": 21806, "mean_kld": 0.65027, "top1_agreement": 0.788315, "vision_mean_kld": 5.239985, "vision_top1_agreement": 0.312592, "code_mean_kld": 0.168196, "code_top1_agreement": 0.923924, "code_teacher_perplexity": 1.2921, "code_student_perplexity": 1.4802, "teacher_perplexity": 9.0897, "student_perplexity": 12.7258, "perplexity_delta": 3.6361 }, "arc_challenge": { "n": 250, "correct": 230, "accuracy": 0.92 }, "mmlu_pro": { "n": 200, "correct": 23, "accuracy": 0.115 } }, { "experts": 64, "sparsity_pct": 50.0, "distributional": { "variant_name": "general_64e_tier0", "num_tokens": 21806, "mean_kld": 0.845137, "top1_agreement": 0.740393, "vision_mean_kld": 5.450346, "vision_top1_agreement": 0.318448, "code_mean_kld": 0.318906, "code_top1_agreement": 0.883929, "code_teacher_perplexity": 1.2921, "code_student_perplexity": 1.7081, "teacher_perplexity": 9.0897, "student_perplexity": 15.7237, "perplexity_delta": 6.634 }, "arc_challenge": { "n": 250, "correct": 179, "accuracy": 0.716 }, "mmlu_pro": { "n": 200, "correct": 25, "accuracy": 0.125 } } ]}sparsity_curve_general.jsonAdded+130