Text Generation
Transformers
Safetensors
English
Arabic
qwen3_5
image-text-to-text
code
swe-bench
software-engineering
agent
arabic
qwen3.8
rootformer
khalilswe
classical-arabic-grammar
coding
agentic
vllm
bfloat16
swe-bench-verified
qata-al-waswasa
next-codewazn-prediction
arabic-grammarian-algorithms
conversational
Run this model with HF Jobs
Run enver/rootformer-code-v25-khalilswe-27b 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/enver/rootformer-code-v25-khalilswe-27b. 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/enver/rootformer-code-v25-khalilswe-27b 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/enver/rootformer-code-v25-khalilswe-27b. 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/enver/rootformer-code-v25-khalilswe-27b. 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 enver/rootformer-code-v25-khalilswe-27b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use enver/rootformer-code-v25-khalilswe-27b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="enver/rootformer-code-v25-khalilswe-27b") 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("enver/rootformer-code-v25-khalilswe-27b") model = AutoModelForMultimodalLM.from_pretrained("enver/rootformer-code-v25-khalilswe-27b", 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 enver/rootformer-code-v25-khalilswe-27b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "enver/rootformer-code-v25-khalilswe-27b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "enver/rootformer-code-v25-khalilswe-27b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/enver/rootformer-code-v25-khalilswe-27b
- SGLang
How to use enver/rootformer-code-v25-khalilswe-27b 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 "enver/rootformer-code-v25-khalilswe-27b" \ --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": "enver/rootformer-code-v25-khalilswe-27b", "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 "enver/rootformer-code-v25-khalilswe-27b" \ --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": "enver/rootformer-code-v25-khalilswe-27b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use enver/rootformer-code-v25-khalilswe-27b with Docker Model Runner:
docker model run hf.co/enver/rootformer-code-v25-khalilswe-27b
Download benchmarks/phase5_coding_summary.json from enver/rootformer-code-v25-khalilswe-27b: direct link, hf CLI and curl.
- Browser
- Download file 3.68 kB
-
https://huggingface.co/enver/rootformer-code-v25-khalilswe-27b/resolve/main/benchmarks/phase5_coding_summary.json
- Command line
-
hf download hf://enver/rootformer-code-v25-khalilswe-27b/benchmarks/phase5_coding_summary.json
-
curl -L -o phase5_coding_summary.json https://huggingface.co/enver/rootformer-code-v25-khalilswe-27b/resolve/main/benchmarks/phase5_coding_summary.json
3.68 kB
| { | |
| "stage25_bcb_ho45": { | |
| "tag": "stage25_bcb_ho_az03_codet_v46", | |
| "total": 45, | |
| "az03_cards_injected": 26, | |
| "pure_fast": 17, | |
| "pure_fast_pct": 37.78, | |
| "fast_az03": 16, | |
| "fast_az03_pct": 35.56, | |
| "native_medium_greedy": 12, | |
| "native_medium_greedy_pct": 26.67, | |
| "single_shot_qata1": 13, | |
| "single_shot_qata1_pct": 28.89, | |
| "nwp_v4_6_codet": 17, | |
| "nwp_v4_6_codet_pct": 37.78, | |
| "nwp_v4_5_codet": 17, | |
| "nwp_v4_5_codet_pct": 37.78, | |
| "oracle_k6": 19, | |
| "oracle_k6_pct": 42.22, | |
| "oracle_capture_pct": 89.47, | |
| "trusted_probes_total": 69, | |
| "quarantined_probes_total": 13, | |
| "winner_sources": { | |
| "fast_raw": 45 | |
| }, | |
| "elapsed_sec": 458.7 | |
| }, | |
| "stage25_dev615": { | |
| "pure_fast": 469, | |
| "native_medium_greedy": 482, | |
| "shatibi_v1": 493, | |
| "shatibi_v2_deployed": { | |
| "passed": 494, | |
| "total": 615, | |
| "pct": 80.33, | |
| "escalated": 362, | |
| "escalated_pct": 58.86, | |
| "tokens": 403487 | |
| }, | |
| "shatibi_v2_oof": { | |
| "total": 615, | |
| "fast_total": 469, | |
| "shatibi_v2_oof_total": 502, | |
| "shatibi_v2_oof_pct": 81.63, | |
| "escalated_total": 330, | |
| "escalated_pct": 53.66, | |
| "overall_calibration": { | |
| "ece": 0.0413, | |
| "brier": 0.1236, | |
| "auroc": 0.8364 | |
| }, | |
| "domain_taus": { | |
| "default": 0.8, | |
| "bcb": 0.45, | |
| "he": 0.95, | |
| "mbpp": 0.83, | |
| "tc40": 0.45 | |
| }, | |
| "suites": { | |
| "bcb": { | |
| "total": 33, | |
| "tau": 0.45, | |
| "fast_passed": 11, | |
| "shatibi_v2_oof_passed": 11, | |
| "shatibi_v2_oof_pct": 33.33, | |
| "escalated": 32, | |
| "escalated_pct": 96.97, | |
| "calibration": { | |
| "ece": 0.2252, | |
| "brier": 0.2497, | |
| "auroc": 0.3512 | |
| } | |
| }, | |
| "he": { | |
| "total": 164, | |
| "tau": 0.95, | |
| "fast_passed": 145, | |
| "shatibi_v2_oof_passed": 154, | |
| "shatibi_v2_oof_pct": 93.9, | |
| "escalated": 133, | |
| "escalated_pct": 81.1, | |
| "calibration": { | |
| "ece": 0.0678, | |
| "brier": 0.0782, | |
| "auroc": 0.7942 | |
| } | |
| }, | |
| "mbpp": { | |
| "total": 378, | |
| "tau": 0.83, | |
| "fast_passed": 283, | |
| "shatibi_v2_oof_passed": 307, | |
| "shatibi_v2_oof_pct": 81.22, | |
| "escalated": 160, | |
| "escalated_pct": 42.33, | |
| "calibration": { | |
| "ece": 0.0377, | |
| "brier": 0.1285, | |
| "auroc": 0.8271 | |
| } | |
| }, | |
| "tc40": { | |
| "total": 40, | |
| "tau": 0.45, | |
| "fast_passed": 30, | |
| "shatibi_v2_oof_passed": 30, | |
| "shatibi_v2_oof_pct": 75.0, | |
| "escalated": 5, | |
| "escalated_pct": 12.5, | |
| "calibration": { | |
| "ece": 0.1012, | |
| "brier": 0.1593, | |
| "auroc": 0.77 | |
| } | |
| } | |
| } | |
| }, | |
| "tc40_qata": 26 | |
| }, | |
| "mcnemar_dev615_natmed_s25_vs_base": { | |
| "n": 615, | |
| "base_passed": 489, | |
| "base_pct": 79.51, | |
| "new_passed": 482, | |
| "new_pct": 78.37, | |
| "delta": -7, | |
| "delta_pct": -1.14, | |
| "new_only_wins": 13, | |
| "base_only_wins": 20, | |
| "discordant": 33, | |
| "both_pass": 469, | |
| "both_fail": 113, | |
| "mcnemar_p_value": 0.296206, | |
| "significant_p05": false | |
| }, | |
| "mcnemar_dev615_fast_s25_vs_base": { | |
| "n": 615, | |
| "base_passed": 460, | |
| "base_pct": 74.8, | |
| "new_passed": 469, | |
| "new_pct": 76.26, | |
| "delta": 9, | |
| "delta_pct": 1.46, | |
| "new_only_wins": 17, | |
| "base_only_wins": 8, | |
| "discordant": 25, | |
| "both_pass": 452, | |
| "both_fail": 138, | |
| "mcnemar_p_value": 0.107752, | |
| "significant_p05": false | |
| } | |
| } |