Text Classification
Transformers
Safetensors
GGUF
English
qwen3_5
image-text-to-text
tinyjev
jev
decision-model
system-one
typed-decisions
ollama
qwen3.5
conversational
Run this model with HF Jobs
Run AnkitAI/TinyJev-4B 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 to fine-tune https://huggingface.co/AnkitAI/TinyJev-4B. 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/AnkitAI/TinyJev-4B 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.
Instructions to use AnkitAI/TinyJev-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnkitAI/TinyJev-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AnkitAI/TinyJev-4B") 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("AnkitAI/TinyJev-4B") model = AutoModelForMultimodalLM.from_pretrained("AnkitAI/TinyJev-4B", 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
- llama.cpp
How to use AnkitAI/TinyJev-4B with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf AnkitAI/TinyJev-4B:Q4_K_M # Run inference directly in the terminal: llama cli -hf AnkitAI/TinyJev-4B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AnkitAI/TinyJev-4B:Q4_K_M # Run inference directly in the terminal: llama cli -hf AnkitAI/TinyJev-4B:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf AnkitAI/TinyJev-4B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf AnkitAI/TinyJev-4B:Q4_K_M
Use Docker
docker model run hf.co/AnkitAI/TinyJev-4B:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use AnkitAI/TinyJev-4B with Ollama:
ollama run hf.co/AnkitAI/TinyJev-4B:Q4_K_M
- Unsloth Desktop
- Pi
How to use AnkitAI/TinyJev-4B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AnkitAI/TinyJev-4B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AnkitAI/TinyJev-4B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AnkitAI/TinyJev-4B with Docker Model Runner:
docker model run hf.co/AnkitAI/TinyJev-4B:Q4_K_M
- Lemonade
How to use AnkitAI/TinyJev-4B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AnkitAI/TinyJev-4B:Q4_K_M
Run and chat with the model
lemonade run user.TinyJev-4B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use AnkitAI/TinyJev-4B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AnkitAI/TinyJev-4B:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default AnkitAI/TinyJev-4B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AnkitAI/TinyJev-4B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AnkitAI/TinyJev-4B:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "AnkitAI/TinyJev-4B:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
update readme
Browse files23 unmodified lines2425262728293022 unmodified lines535455565758596061626364658 unmodified lines7475767778798081828313 unmodified lines97989910010110210312 unmodified lines1161171181191201211221231241251261276 unmodified lines13413513613713813914014123 unmodified lines<p><a href="https://github.com/ankit-aglawe/tinyjev">GitHub</a> ·<a href="https://pypi.org/project/tinyjev/">PyPI</a> ·<a href="https://huggingface.co/AnkitAI/tinyjev-0.6b">TinyJev 0.6B</a> ·<a href="https://github.com/ankit-aglawe/tinyjev/tree/main/examples">Examples</a></p>22 unmodified lines| Model | Params | OD-500 | Gate 0.85 | ms / case | Weights ||---|---:|---:|---|---:|---|| <img src="https://raw.githubusercontent.com/ankit-aglawe/tinyjev/main/assets/logos/tinyjev.png" width="18"> **TinyJev 0.6B** | 596M, 1.2 GB | 440 (88.0%) | 59% @ 98.0% | 85 | 🤗 [AnkitAI/tinyjev-0.6b](https://huggingface.co/AnkitAI/tinyjev-0.6b) || <img src="https://raw.githubusercontent.com/ankit-aglawe/tinyjev/main/assets/logos/tinyjev.png" width="18"> **TinyJev 4B** | 4.0B, 8.0 GB | 474 (94.8%) | 87% @ 99.1% | 628 | 🤗 [AnkitAI/tinyjev-4b](https://huggingface.co/AnkitAI/tinyjev-4b) |OD-500 is correct answers out of 500. Gate 0.85 is the share of decisions answered on its own atconfidence ≥ 0.85, and how often those were right. Calibration (ECE 0.071 vs 0.022), coverage at 2%error (63% vs 92%) and transfer-v4 dev (0.625 vs 0.762) are on the benchmark page. Load either with`tinyjev.load("tinyjev-0.6b")` or `tinyjev.load("tinyjev-4b")`.Both rows are fp16. Loading with `quantize=8` keeps the same weights in half the memory and changesalmost nothing: the 0.6B scores 440 at 90 ms, the 4B 473 at 845 ms, one answer in 500 different from8 unmodified lines| Model | Correct / 500 | Handled alone at confidence ≥ 0.85 ||---|---:|---:|| Claude Opus 5.5 (cloud, self-reported probabilities) | 496 | 477 at 100.0% || **tinyjev-4b** (fp16) | **474** | **437 at 99.1%** || tinyjev-4b at `quantize=8` | 473 | 437 at 99.1% || Kev-0.8B (raw logits) | 463 | 186 at 100.0% || tinyjev-0.6b | 440 | 296 at 98.0% |353/375 on dev, 121/125 on holdout, 95% CI 0.928–0.966, ECE 0.022, Brier 0.071, coverage at 2% error 92%.On Kev's transfer-v4 dev it scores 0.762 against 0.625 for the 0.6B (Kev-4B, a full fine-tune, 0.790).13 unmodified lines```pythonimport tinyjevagent = tinyjev.load("tinyjev-4b", quantize=8) # 4.5 GB in memory; drop quantize for fp16, 8 GBagent.predict({"state": "Shoes arrived two weeks late and in the wrong size. Also I see two charges on my card.",12 unmodified linesOne request shape:```bashtinyjev serve tinyjev-4b --quantize 8 # POST /v1/systemone on 127.0.0.1:8077```## What is in this repo`AutoModel.from_pretrained("AnkitAI/tinyjev-4b")` loads the backbone on its own, a standard`Qwen3Model` in fp16 with the LoRA already merged. The decision head lives in `head.safetensors`, and`tinyjev` is what turns hidden states into calibrated answers.6 unmodified lines| | transfer-v4 dev | decision-v7 dev | OpenDecision 500 || --- | --- | --- | --- || tinyjev-4b | 0.762 | 0.859 | 474 / 500 || tinyjev-0.6b | 0.625 | | 440 / 500 |## Support the Project23 unmodified lines2425262728293022 unmodified lines535455565758596061626364658 unmodified lines7475767778798081828313 unmodified lines97989910010110210312 unmodified lines1161171181191201211221231241251261276 unmodified lines13413513613713813914014123 unmodified lines<p><a href="https://github.com/ankit-aglawe/tinyjev">GitHub</a> ·<a href="https://pypi.org/project/tinyjev/">PyPI</a> ·<a href="https://huggingface.co/AnkitAI/TinyJev-0.6B">TinyJev 0.6B</a> ·<a href="https://github.com/ankit-aglawe/tinyjev/tree/main/examples">Examples</a></p>22 unmodified lines| Model | Params | OD-500 | Gate 0.85 | ms / case | Weights ||---|---:|---:|---|---:|---|| <img src="https://raw.githubusercontent.com/ankit-aglawe/tinyjev/main/assets/logos/tinyjev.png" width="18"> **TinyJev 0.6B** | 596M, 1.2 GB | 440 (88.0%) | 59% @ 98.0% | 85 | 🤗 [AnkitAI/TinyJev-0.6B](https://huggingface.co/AnkitAI/TinyJev-0.6B) || <img src="https://raw.githubusercontent.com/ankit-aglawe/tinyjev/main/assets/logos/tinyjev.png" width="18"> **TinyJev 4B** | 4.0B, 8.0 GB | 474 (94.8%) | 87% @ 99.1% | 628 | 🤗 [AnkitAI/TinyJev-4B](https://huggingface.co/AnkitAI/TinyJev-4B) |OD-500 is correct answers out of 500. Gate 0.85 is the share of decisions answered on its own atconfidence ≥ 0.85, and how often those were right. Calibration (ECE 0.071 vs 0.022), coverage at 2%error (63% vs 92%) and transfer-v4 dev (0.625 vs 0.762) are on the benchmark page. Load either with`tinyjev.load("TinyJev-0.6B")` or `tinyjev.load("TinyJev-4B")`.Both rows are fp16. Loading with `quantize=8` keeps the same weights in half the memory and changesalmost nothing: the 0.6B scores 440 at 90 ms, the 4B 473 at 845 ms, one answer in 500 different from8 unmodified lines| Model | Correct / 500 | Handled alone at confidence ≥ 0.85 ||---|---:|---:|| Claude Opus 5.5 (cloud, self-reported probabilities) | 496 | 477 at 100.0% || **TinyJev-4B** (fp16) | **474** | **437 at 99.1%** || TinyJev-4B at `quantize=8` | 473 | 437 at 99.1% || Kev-0.8B (raw logits) | 463 | 186 at 100.0% || TinyJev-0.6B | 440 | 296 at 98.0% |353/375 on dev, 121/125 on holdout, 95% CI 0.928–0.966, ECE 0.022, Brier 0.071, coverage at 2% error 92%.On Kev's transfer-v4 dev it scores 0.762 against 0.625 for the 0.6B (Kev-4B, a full fine-tune, 0.790).13 unmodified lines```pythonimport tinyjevagent = tinyjev.load("TinyJev-4B", quantize=8) # 4.5 GB in memory; drop quantize for fp16, 8 GBagent.predict({"state": "Shoes arrived two weeks late and in the wrong size. Also I see two charges on my card.",12 unmodified linesOne request shape:```bashtinyjev serve TinyJev-4B --quantize 8 # POST /v1/systemone on 127.0.0.1:8077```## What is in this repo`AutoModel.from_pretrained("AnkitAI/TinyJev-4B")` loads the backbone on its own, a standard`Qwen3Model` in fp16 with the LoRA already merged. The decision head lives in `head.safetensors`, and`tinyjev` is what turns hidden states into calibrated answers.6 unmodified lines| | transfer-v4 dev | decision-v7 dev | OpenDecision 500 || --- | --- | --- | --- || TinyJev-4B | 0.762 | 0.859 | 474 / 500 || TinyJev-0.6B | 0.625 | | 440 / 500 |## Support the Project
README.md+12-12