Run this model with HF Jobs

Run roskosmos19/Orca-2-4B-hight 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/roskosmos19/Orca-2-4B-hight. 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/roskosmos19/Orca-2-4B-hight 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/roskosmos19/Orca-2-4B-hight. 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/roskosmos19/Orca-2-4B-hight. 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.
A newer version of this model is available: roskosmos19/Rhea-4B-Coding-max

Orca-2-4B-hight

(formerly titled "Orca-4B-Agentic")

Korrektur / Correction (2026-11-23)

DE: Die Gewichte in diesem Repo sind Byte fΓΌr Byte identisch mit Aquiles-ai/Athenea-4B-Coding (SHA-256 der Safetensors-Dateien verglichen). GeΓ€ndert wurden nur Konfiguration, Chat-Template bzw. Doku. Aussagen ΓΌber zusΓ€tzliches Training oder bessere Benchmark-Werte beziehen sich daher nicht auf andere Gewichte als das Original.

EN: The weights in this repo are byte-identical to Aquiles-ai/Athenea-4B-Coding (SHA-256 of the safetensors files compared). Only configuration, chat template and/or documentation were changed. Claims about additional training or improved benchmark scores therefore do not refer to weights that differ from the original.

Faster β€’ Cheaper β€’ Stronger for agentic & coding tasks

πŸ› οΈ Repository fix (2026-11-13)

EN: model.safetensors.index.json previously listed only 2 tensors and pointed to non-existent files (model-0000x-of-00003), so πŸ€— Transformers could not load the model. It now maps all 398 tensors to the two real shards (model-00001-of-00002.safetensors, model-00002-of-00002.safetensors). Weights unchanged; leftover duplicate files gitattributes / gitattributes(1) removed; Quickstart now uses the Hub repo id.

DE: model.safetensors.index.json enthielt bisher nur 2 Tensoren und verwies auf nicht vorhandene Dateien (model-0000x-of-00003), daher konnte πŸ€— Transformers das Modell nicht laden. Jetzt sind alle 398 Tensoren den zwei echten Shards zugeordnet. Gewichte unverΓ€ndert; ΓΌberflΓΌssige Duplikate gitattributes / gitattributes(1) entfernt; Quickstart nutzt jetzt die Hub-Repo-ID.

Optimized successor of the original Rhea-4B-Coding / Athenea line.

What changed for better price/performance

Aspect Original multi-pass Rhea Rhea-4B-Agentic (this)
Reasoning style Forced 3-pass (implement→review→final) Single-pass + optional <think>
Context 262k 32 768 (covers real agent workloads)
Forced long outputs min_new_tokens=1024 Removed – answers as long as needed
Special tokens Broken prefixes + many vision Clean + lean (tools + thinking only)
Generation defaults High temp / long forced Tuned 0.4 / 0.9 for quality + speed
Agentic readiness Good Improved tool-calling template
Inference cost (VRAM/time) Higher (long forced reasoning) Significantly lower

β†’ Same 4B base intelligence, noticeably faster and cheaper to run, better real-world agentic behavior because it is no longer forced into three full generations.

Why this is better for agentic tasks

  • Standard <think>...</think> for chain-of-thought (optional, model decides when useful)
  • Clean, reliable tool-calling format
  • No artificial multi-pass overhead that multiplies latency and cost
  • Strong coding + reasoning focus retained
  • System prompt encourages precise, secure, efficient solutions

Technical specs

  • Architecture: Qwen3ForCausalLM (4B)
  • Context: 32 768 tokens
  • Special tokens: <|im_start|>, <|im_end|>, <think>, </think>, tool tags
  • Recommended quant: Q4_K_M / AWQ for best speed/quality

Recommended settings

{
  "temperature": 0.4,
  "top_p": 0.9,
  "top_k": 30,
  "repetition_penalty": 1.05,
  "max_new_tokens": 8192
}

Quickstart

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "roskosmos19/Orca-2-4B-hight"

tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)

messages = [
    {"role": "user", "content": "Write a secure Python function that validates JWT tokens and handles expiration gracefully."}
]

text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([text], return_tensors="pt").to(model.device)

outputs = model.generate(**inputs, max_new_tokens=2048)
print(tokenizer.decode(outputs[0][len(inputs.input_ids[0]):], skip_special_tokens=False))

Deployment tips (max cheapness)

  • vLLM / SGLang: --max-model-len 32768
  • llama.cpp: Q4_K_M or Q5_K_M
  • Keep context ≀ 16k–24k in production for optimal speed/VRAM

Intended use / Einsatzzweck

  • EN: Agentic coding, tool calling and reasoning assistance; research and experimentation.
  • DE: Agentisches Programmieren, Tool-Calling und UnterstΓΌtzung beim Schlussfolgern; Forschung und Experimente.

Limitations / EinschrΓ€nkungen

EN:

  • Can hallucinate or produce wrong answers and code; verify outputs before relying on them.
  • No own benchmark evaluation was run for this repo; see the base model's card for measured scores.
  • Inherits the limitations and biases of the base model and its training data.
  • Context window is 32,768 tokens.

DE:

  • Kann halluzinieren oder falsche Antworten und fehlerhaften Code liefern; Ausgaben vor der Nutzung prΓΌfen.
  • FΓΌr dieses Repo wurden keine eigenen Benchmarks gemessen; gemessene Werte stehen in der Karte des Basismodells.
  • Übernimmt die EinschrΓ€nkungen und Verzerrungen des Basismodells und seiner Trainingsdaten.
  • Kontextfenster: 32.768 Tokens.

Credits

  • Base: Qwen3-4B + Athenea / Rhea coding lineage
  • Optimized for agentic use, single-pass thinking, lower cost

Apache 2.0

Downloads last month
145
Safetensors
Model size
4B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for roskosmos19/Orca-2-4B-hight

Dataset used to train roskosmos19/Orca-2-4B-hight

Space using roskosmos19/Orca-2-4B-hight 1

Collection including roskosmos19/Orca-2-4B-hight