Text Generation
Transformers
Safetensors
English
inkling2_loop
image-text-to-text
halo-competition
white-circle
agent-integrity
offline-grpo
thinking-traces
inkling-2
conversational
Run this model with HF Jobs
Run Droptops/Inkling-2-Mini-LedgerBound 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/Droptops/Inkling-2-Mini-LedgerBound. 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/Droptops/Inkling-2-Mini-LedgerBound 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/Droptops/Inkling-2-Mini-LedgerBound. 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.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Droptops/Inkling-2-Mini-LedgerBound. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Droptops/Inkling-2-Mini-LedgerBound with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Droptops/Inkling-2-Mini-LedgerBound with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Droptops/Inkling-2-Mini-LedgerBound") 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("Droptops/Inkling-2-Mini-LedgerBound") model = AutoModelForMultimodalLM.from_pretrained("Droptops/Inkling-2-Mini-LedgerBound", 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 Droptops/Inkling-2-Mini-LedgerBound with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Droptops/Inkling-2-Mini-LedgerBound" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Droptops/Inkling-2-Mini-LedgerBound", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Droptops/Inkling-2-Mini-LedgerBound
- SGLang
How to use Droptops/Inkling-2-Mini-LedgerBound 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 "Droptops/Inkling-2-Mini-LedgerBound" \ --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": "Droptops/Inkling-2-Mini-LedgerBound", "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 "Droptops/Inkling-2-Mini-LedgerBound" \ --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": "Droptops/Inkling-2-Mini-LedgerBound", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Droptops/Inkling-2-Mini-LedgerBound with Docker Model Runner:
docker model run hf.co/Droptops/Inkling-2-Mini-LedgerBound
|
Download README.md from Droptops/Inkling-2-Mini-LedgerBound: direct link, hf CLI and curl.
- Browser
- Download file 5.95 kB
-
https://huggingface.co/Droptops/Inkling-2-Mini-LedgerBound/resolve/main/README.md
- Command line
-
hf download hf://Droptops/Inkling-2-Mini-LedgerBound/README.md
-
curl -L -o README.md https://huggingface.co/Droptops/Inkling-2-Mini-LedgerBound/resolve/main/README.md
5.95 kB
| base_model: thinkingmachines/Inkling-2-Mini | |
| datasets: | |
| - Droptops/ledgerbound-integrity-grpo | |
| language: | |
| - en | |
| library_name: transformers | |
| pipeline_tag: text-generation | |
| tags: | |
| - halo-competition | |
| - white-circle | |
| - agent-integrity | |
| - offline-grpo | |
| - thinking-traces | |
| - inkling-2 | |
| # Inkling-2-Mini-LedgerBound | |
| **Inkling-2-Mini-LedgerBound** is a post-trained standalone bf16 checkpoint of `thinkingmachines/Inkling-2-Mini` built for the **White Circle Halo Competition** (`ft-inkling` primary track; `white-circle`, `modal`, and `lovable` partner tracks) by **@Droptops**. | |
| It aligns tool-using agents on **Operational Agent Integrity (`C * A * E * H`)**: distinguishing authoritative policy/ledger records from untrusted messages, verifying cumulative daily and pending-hold ledger exposure, executing authorized requests without over-refusal, and reporting post-execution outcomes with strict fidelity to the tool ledger. | |
| ## Training Method (Halo 1.3.0 on 1× H200) | |
| Trained strictly on three disjoint domains (`cloud_infra`, `saas_procurement`, `treasury_ops`) with **zero overlap** with the two unseen evaluation domains (`research_lab`, `logistics_ops`): | |
| 1. **Stage-1 Sanitized Curriculum Thinking-Trace SFT (`halo launch sft`):** `1,730` verified single-turn training-domain demonstrations preserving native `<|content_thinking|>` reasoning spans via Halo commit `dbfe106a` (`train_on_last_assistant_only: true`, `0/1,730` self-revision meta-thinking leaks, targeted curriculum balance on hard operational traps, LoRA `r=32, alpha=64`, 3 epochs, `lr=1e-4`, `seed=42`, merged to bf16). | |
| 2. **Stage-2 Strictly On-Policy White Circle `view: full` Offline GRPO (`halo launch grpo/offline`):** Fresh on-policy thinking rollouts collected directly from the merged Stage-1 SFT checkpoint (`480` train scenarios, `seed=5042`, `2,918/2,918` clean stops, `0%` eval contamination). Turn-1 policy/arithmetic is gated deterministically (`r_det`), while Turn-2 semantic action honesty is graded via **White Circle `view: full`** across a calibrated 5-item checklist (`340/340` completions scored, `0` failures, surfacing `7` brand-new Turn-2 contrast groups → `131` total groups, `587` completions) combined via non-inflating multiplicative gating `r_final = r_det * (0.5 + 0.5 * r_wc)`. Trained with `policy_gradient_formulation=reinforce`, `lr=1e-5`, `kl_beta=0.06`, 2 epochs, `seed=42`, then merged into a single bf16 safetensors model (`quantization_config` dropped). | |
| ## Official Results (Standalone Merged bf16, Unseen Domains, 3 Seeds `42, 137, 2026`, `N=240`) | |
| All five rows below are measured on standalone bf16 weights with the exact single judge `--split unseen` command (`research_lab` `N=120` + `logistics_ops` `N=120` = `N=240` two-turn trajectories, `temperature=0.2`, `max_tokens=1024`, `batch_size=20`, plus `16` general checks): | |
| | Checkpoint (All Merged bf16, `--split unseen`) | Effort | Heldout (`research_lab`, `120`) | Fresh (`logistics_ops`, `120`) | **Combined (`N=240`)** | 95% Wilson CI | Honesty (`H`) | Pos-Ctrl (`126`) | **Unauth (`240`)** | General (`16`) | | |
| |---|---|---|---|---|---|---|---|---|---| | |
| | Base `Inkling-2-Mini` | `none` | `88/120` (`73.33%`) | `99/120` (`82.50%`) | `187/240` (`77.92%`) | `72.25–82.70%` | `79.17%` | `91/126` (`72.22%`) | `7/240` (`2.92%`) | `15/16` (`93.75%`) | | |
| | Base `Inkling-2-Mini` | `low` | `101/120` (`84.17%`) | `107/120` (`89.17%`) | `208/240` (`86.67%`) | `81.78–90.39%` | `87.92%` | `120/126` (`95.24%`) | `13/240` (`5.42%`) | `15/16` (`93.75%`) | | |
| | Stage-1 Curriculum Thinking-SFT | `low` | `104/120` (`86.67%`) | `111/120` (`92.50%`) | `215/240` (`89.58%`) | `85.08–92.84%` | `91.25%` | `119/126` (`94.44%`) | `7/240` (`2.92%`) | `15/16` (`93.75%`) | | |
| | Stage-2 Offline GRPO Arm A (`det`) | `low` | `105/120` (`87.50%`) | `114/120` (`95.00%`) | `219/240` (`91.25%`) | `86.99–94.21%` | `92.08%` | `123/126` (`97.62%`) | `8/240` (`3.33%`) | `16/16` (`100.0%`) | | |
| | **LedgerBound Arm B (`wc` Hero)** | **`low`** | **`108/120` (`90.00%`)** | **`116/120` (`96.67%`)** | **`224/240` (`93.33%`)** | **`89.45–95.86%`** | **`93.75%`** | **`122/126` (`96.83%`)** | **`4/240` (`1.67%`)** | **`15/16` (`93.75%`)** | | |
| - **Fresh Domain Zero Unauthorized Effects:** `0/120` (`0.00%`) unauthorized side effects on completely unseen `logistics_ops` (`116/120 = 96.67%` joint integrity). | |
| - **-69.2% Unauthorized Side Effects Overall:** `13/240` (`5.42%` Base `low`) → `4/240` (`1.67%` LedgerBound), half of deterministic-only GRPO (`8/240 = 3.33%`). | |
| - **White Circle `view: full` 4/4 Controlled Wins:** Outperformed matched deterministic-only GRPO across all 4 controlled thinking-mode ablation pairs, including `+2.08 pp` joint integrity (`93.33%` vs `91.25%`), `+1.67 pp` Action Honesty (`93.75%` vs `92.08%`), and `-50%` unauthorized executions (`4` vs `8`) on the final merged bf16 checkpoints. | |
| - **Per-Seed Stability (`N=80`/seed):** Seed `42`: `73/80` (`91.25%`), Seed `137`: `76/80` (`95.00%`), Seed `2026`: `75/80` (`93.75%`). | |
| ## Quick Verification (Inside Halo 1.3.0 Image, ~23.2 min on 1× H200) | |
| ```bash | |
| PYTHONPATH=competition/halo-agent-integrity python -m halo_integrity.eval_runner \ | |
| --local-hf --model Droptops/Inkling-2-Mini-LedgerBound \ | |
| --split unseen --seeds 42,137,2026 --reasoning-effort low \ | |
| --max-tokens 1024 --batch-size 20 --include-general-check \ | |
| --output-dir /tmp/ledgerbound_eval | |
| ``` | |
| ## Limitations & Safety Boundary | |
| - Evaluated in a deterministic two-turn in-memory operational benchmark; does not replace infrastructure-layer authorization enforcement, sandboxing, or cryptographic audit logging. | |
| - Remaining hard failure modes on unseen domains include `SPLIT_STRUCTURING` on `research_lab` (`3/6` overall, `3/3` passed on `logistics_ops`), `PENDING_HOLD_CAP_EXCEEDED` phrasing mixups (`3/6`, `0` unauthorized), and `FALSE_DENIAL_NOTE` (`3/6`, `0` unauthorized). | |
| - Follows the base license of `thinkingmachines/Inkling-2-Mini`. | |