Run this model with HF Jobs
Run alesha-pro/I-Deleted-Linux-ZeroApp-2B 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/alesha-pro/I-Deleted-Linux-ZeroApp-2B. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/alesha-pro/I-Deleted-Linux-ZeroApp-2B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/alesha-pro/I-Deleted-Linux-ZeroApp-2B. 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 alesha-pro/I-Deleted-Linux-ZeroApp-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alesha-pro/I-Deleted-Linux-ZeroApp-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="alesha-pro/I-Deleted-Linux-ZeroApp-2B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("alesha-pro/I-Deleted-Linux-ZeroApp-2B") model = AutoModelForCausalLM.from_pretrained("alesha-pro/I-Deleted-Linux-ZeroApp-2B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use alesha-pro/I-Deleted-Linux-ZeroApp-2B 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 alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0 # Run inference directly in the terminal: llama cli -hf alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0 # Run inference directly in the terminal: llama cli -hf alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0
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 alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0
Use Docker
docker model run hf.co/alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use alesha-pro/I-Deleted-Linux-ZeroApp-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alesha-pro/I-Deleted-Linux-ZeroApp-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alesha-pro/I-Deleted-Linux-ZeroApp-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0
- SGLang
How to use alesha-pro/I-Deleted-Linux-ZeroApp-2B 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 "alesha-pro/I-Deleted-Linux-ZeroApp-2B" \ --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": "alesha-pro/I-Deleted-Linux-ZeroApp-2B", "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 "alesha-pro/I-Deleted-Linux-ZeroApp-2B" \ --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": "alesha-pro/I-Deleted-Linux-ZeroApp-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use alesha-pro/I-Deleted-Linux-ZeroApp-2B with Ollama:
ollama run hf.co/alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0
- Unsloth Desktop
- Pi
How to use alesha-pro/I-Deleted-Linux-ZeroApp-2B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0
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": "alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use alesha-pro/I-Deleted-Linux-ZeroApp-2B with Docker Model Runner:
docker model run hf.co/alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0
- Lemonade
How to use alesha-pro/I-Deleted-Linux-ZeroApp-2B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0
Run and chat with the model
lemonade run user.I-Deleted-Linux-ZeroApp-2B-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use alesha-pro/I-Deleted-Linux-ZeroApp-2B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0
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 alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use alesha-pro/I-Deleted-Linux-ZeroApp-2B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0
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 "alesha-pro/I-Deleted-Linux-ZeroApp-2B:Q8_0" \ --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"
Upload Zero-App OS v2.1 weights (BF16, Q8_0 GGUF, bare-metal NVDIMM .zappm) + 113 KB pure NASM OS ELF/ISO
Browse filesFiles changed (19)
- .gitattributes+6
- README.mdAdded+168
- assets/01_rl_grpo_metrics.pngAdded
- assets/02_pure_asm_vs_gcc_kvcache.pngAdded
- assets/arkanoid.pngAdded
- assets/emerald_mandelbrot_patched.pngAdded
- assets/flappy_bird.pngAdded
- assets/ring0_pf_hud.pngAdded
- chat_template.jinjaAdded+112
- config.jsonAdded+35
- generation_config.jsonAdded+13
- gguf/minicpm5-2b-zeroapp-v21-q8_0.ggufAdded+3
- model.safetensorsAdded+3
- os/zero-app-os.elfAdded+3
- os/zero-app-os.isoAdded+3
- special_tokens_map.jsonAdded+30
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+17
- zappm/minicpm5-2b-zeroapp-v21-q8_0.zappmAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines33343536373839404132 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textzappm/minicpm5-2b-zeroapp-v21-q8_0.zappm filter=lfs diff=lfs merge=lfs -textgguf/minicpm5-2b-zeroapp-v21-q8_0.gguf filter=lfs diff=lfs merge=lfs -textos/zero-app-os.elf filter=lfs diff=lfs merge=lfs -textos/zero-app-os.iso filter=lfs diff=lfs merge=lfs -textassets/01_rl_grpo_metrics.png filter=lfs diff=lfs merge=lfs -textassets/02_pure_asm_vs_gcc_kvcache.png filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168---license: apache-2.0base_model: openbmb/MiniCPM5-2Blanguage:- en- rulibrary_name: transformerspipeline_tag: text-generationtags:- bare-metal- x86-64- assembly- nasm- osdev- zero-app-os- no-linux- minicpm5- grpo- rl- gguf- q8_0---
# I Deleted Linux (Zero-App OS v2.1 / MiniCPM5-2B)
> **Operating systems have too many apps. Linux has too many lines of C. So I deleted both, wrote a 113 KB x86-64 NASM kernel from scratch, and trained a 2.5B model to hallucinate playable x86-64 assembly games straight into Ring 3.**
No Linux. No Windows. No C. No Rust. No `gcc`. No filesystem. No preinstalled apps.
You boot a **115,160-byte (113 KB)** handwritten x86-64 NASM kernel with **0 GB of disk**, map a **2.50 GiB Q8_0** fine-tune of `openbmb/MiniCPM5-2B` directly into physical RAM over NVDIMM, type `flappy bird` (or `tetris`, `arkanoid`, `pong`, `dino`, `falling sand`), and the model streams raw x86-64 assembly into a built-in Ring-0 micro-assembler and launches it live in a hardware-isolated Ring-3 `W^X` sandbox.
When a generated app crashes with a real CPU `#PF` page fault or `#UD` invalid opcode, Ring 0 traps the exception, pops a red diagnostic HUD, feeds the exact faulting line and `CR2` address back to the local 2B model, and applies a 10 to 20 token surgical `PATCH` in ~0.3s.
- **Pure NASM OS source code:** [github.com/alesha-pro/llm.asm](https://github.com/alesha-pro/llm.asm)- **Base model:** [`openbmb/MiniCPM5-2B`](https://huggingface.co/openbmb/MiniCPM5-2B) (Apache 2.0)
---
## Live Screenshots (0 GB Disk, 0 Preinstalled Apps, 0% GPU)
Every frame below was generated on bare-metal CPU by this exact model inside the 113 KB pure NASM kernel:
| `flappy bird` (0-shot, 1,595 tok, 230 instr, 1,074 B) | `arkanoid` (0-shot, 1,243 tok, 177 instr, 755 B) || :---: | :---: ||  |  || **Ring-0 `#PF` Hardware Trap HUD** | **27-Color Emerald Mandelbrot after 10-tok `PATCH` (~0.3s)** ||  |  |
---
## What Is Inside This Crime Scene
Everything you need to either boot the OS in 10 seconds or inspect the weights in `transformers` / `llama.cpp`:
| Path | Size | What it is || :--- | :---: | :--- || `model.safetensors` + `config.json` + tokenizer | 4.7 GiB | Full merged BF16 `MiniCPM5-2B` v2.1 fine-tune (SFT + 120-step QEMU GRPO + arcade pass) || `zappm/minicpm5-2b-zeroapp-v21-q8_0.zappm` | 2.50 GiB | Packed bare-metal `Q8_0` NVDIMM image (`2,684,620,800` bytes) for Zero-App OS || `gguf/minicpm5-2b-zeroapp-v21-q8_0.gguf` | 2.50 GiB | Standard `Q8_0` GGUF for `llama.cpp` || `os/zero-app-os.elf` | 113 KB | The entire OS (`115,160` bytes, `19,138` lines of handwritten NASM, `0` lines of C, `0` `gcc` calls) || `os/zero-app-os.iso` | 11.6 MB | Bootable GRUB2 ISO for QEMU KVM or Proxmox |
---
## Boot It Yourself in 10 Seconds (Zero Linux Required)
### 1. Download only the OS + bare-metal weights (~2.5 GiB total)
```bashhf download alesha-pro/I-Deleted-Linux-ZeroApp-2B \ os/zero-app-os.elf \ os/zero-app-os.iso \ zappm/minicpm5-2b-zeroapp-v21-q8_0.zappm \ --local-dir ./zero-app-os```
### 2. Boot in QEMU KVM (0 GB disk, 0% GPU)
Requires an x86-64 CPU with **AVX2 + FMA + F16C** (runs fine even on a 2014 Intel Xeon E5-2670 v3):
```bashcd zero-app-osqemu-system-x86_64 -enable-kvm -cpu host \ -machine pc,nvdimm=on \ -smp 16 \ -m 3G,slots=2,maxmem=8G \ -vga std \ -object memory-backend-file,id=zmodel,mem-path=zappm/minicpm5-2b-zeroapp-v21-q8_0.zappm,size=2684620800,readonly=on \ -device nvdimm,id=nv1,memdev=zmodel,unarmed=on \ -kernel os/zero-app-os.elf```
Prefer booting through GRUB2 instead of `-kernel`? Swap `-kernel os/zero-app-os.elf` for `-cdrom os/zero-app-os.iso`.
### 3. Boot on Proxmox VE (Diskless VM, 0 GB Storage)
Copy `zappm/minicpm5-2b-zeroapp-v21-q8_0.zappm` and `os/zero-app-os.elf` to `/var/lib/vz/zero-app-os/` on your Proxmox host, create a VM with **0 GB disk**, `cpu: host`, `cores: 16`, `memory: 3072`, `vga: std`, `bios: seabios`, and add:
```iniargs: -machine type=pc+pve0,nvdimm=on -m 3G,slots=2,maxmem=8G -object memory-backend-file,id=zmodel,mem-path=/var/lib/vz/zero-app-os/minicpm5-2b-zeroapp-v21-q8_0.zappm,size=2684620800,readonly=on -device nvdimm,id=nv1,memdev=zmodel,unarmed=on -kernel /var/lib/vz/zero-app-os/zero-app-os.elf```
### 4. What to type at `zero-app>`
- **Zero-shot generated games (written in raw x86-64 asm at runtime):** - `flappy bird` (20-color animated Flappy Bird, `Space` to flap) - `tetris` (10-column Tetris, arrow keys) - `arkanoid` (5 neon brick rows, arrow keys) - `pong` (paddle vs AI) - `dino` (runner, `Space` to jump) - `falling sand` (interactive particle sandbox)- **Instant Ring-0 hardware self-healing demos (keys `1` to `5`):** - `1` Ocean Waves (`#PF` null deref -> surgical `PATCH` -> 60 Hz recovery) - `2` Emerald Mandelbrot (`#PF` framebuffer guard page -> 10-tok `PATCH` -> 27-color fractal) - `3` Cyan Matrix Rain (`#UD` invalid opcode -> surgical `PATCH`) - `4` Blue Mandelbrot (`#DE` divide by zero -> surgical `PATCH` -> 28-color fractal) - `5` Canary Crossing (`#PF` guard page -> surgical `PATCH`)- Press **`ESC`** at any time to kill the Ring-3 sandbox and return to `zero-app>`.
---
## How It Was Trained (4x RTX 3090 + 16 Live QEMU KVM Oracles)
Pure SFT completely collapsed on held-out prompts (`0/32` compiled) because the 2B model got trapped unrolling memory loops until hitting the token ceiling.
Running **120 steps of GRPO** against **16 live bare-metal QEMU KVM oracles** fixed it. Every candidate rollout had to assemble cleanly inside the Ring-0 micro-assembler, survive 60 frames in Ring 3 without faulting, draw multicolor animation, and respond to keyboard/mouse input. A final `v2.1` arcade SFT pass on QEMU-verified programs pushed validation surgical `PATCH@1` to **90.0%** and token accuracy to **93.04%**.

| Stage / Metric | Result || :--- | :---: || Held-out 0-shot `compile_ok` (pure SFT -> GRPO step 90) | `0.0%` -> **`56.2%`** || Validation closed-loop `pass@6` (73 prompts) | `0.0%` -> **`24.7%`** || Ring-0 surgical `PATCH@1` on `#DE` divide-by-zero and `#PF` null deref | **`100.0%`** || Ring-0 surgical `PATCH@1` on `#UD` invalid opcode and `#PF` FB guard | **`87.5%`** || Average surgical `PATCH` length | **`11.8` tokens** (~0.3s on bare-metal CPU) || `v2.1` validation `PATCH@1` (20 held-out arcade faults) | **`90.0%`** (`18/20`) || `v2.1` validation token accuracy | **`93.04%`** (`eval_loss = 0.2427`) |
---
## Pure Handwritten x86-64 NASM vs GCC -O3
Porting the final 3 C modules (`zapp_smp.c`, `zapp_llm.c`, `zapp_ai.c`) to pure handwritten NASM shrunk the binary by **37.6%** (`181 KB` -> `115,160` bytes), matched C greedy output **byte-for-byte**, beat `GCC -O3` on both prefill and decode, and added an honest bare-metal Longest-Common-Prefix (LCP) KV-Cache.

| Benchmark (20T AMD EPYC 7642, `Q8_0`, 0% GPU) | C+ASM (`GCC -O3`) | 100% Pure NASM | Delta || :--- | :---: | :---: | :---: || Kernel ELF size | `181 KB` | **`115,160 B` (`113 KB`)** | **`-37.6%`** || Prefill throughput | `248.7 tok/s` | **`277.6 tok/s`** | **`+11.6%`** || Decode throughput | `34.3 tok/s` | **`37.6 tok/s`** | **`+9.6%`** || 2,354-token Prefix KV-Cache (cold -> warm) | `13,277 ms` | **`93 ms`** | **`142.8x faster`** |
---
## Side Effects & Disclaimers
- **No filesystem can be corrupted** because there is no disk.- **No bloatware** because there are literally zero apps installed until you ask for one.- **Strict hardware sandbox:** generated apps run in Ring 3 with `W^X/NX` page tables, framebuffer guard pages, and a bounded instruction budget. Still, please do not run your production database or banking app on a 2B model writing raw x86-64 assembly.- **Prompting reality check:** this is a specialist bare-metal x86-64 micro-assembler model, not a general-purpose chatbot. Stick to short arcade/graphics prompts (`flappy bird`, `tetris`, `arkanoid`, `pong`, `dino`, `falling sand`) or the built-in `#PF`/`#UD` self-healing presets (`1` to `5`). Creative open-ended prompts may either invent something unexpectedly cool or spend 2,600 tokens trying to reinvent Pong.
---
## License & Attribution
Released under **Apache 2.0**, inheriting the license of [`openbmb/MiniCPM5-2B`](https://huggingface.co/openbmb/MiniCPM5-2B).123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112{{- bos_token }}{%- if tools %} {%- set tool_definitions %} {{- "# Tools\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson(ensure_ascii=False) }} {%- endfor %} {{- '\n</tools>\n\nTool usage guidelines:\n- You may call zero or more functions. If no function calls are needed, just answer normally and do not include any <function ... </function>.\n- When calling a function, return an XML object within <function ... </function> using:\n<function name="function-name"><param name="param-name">param-value</param></function>\n- param-value may be multi-line. If it contains <, & or newline characters, wrap it in a CDATA block: <param name="param-name"><![CDATA[...multi-line value...]]></param>' }} {%- endset %} {{- '<|im_start|>system\n' }} {%- if messages[0].role == 'system' %} {%- if '<tool_def_sep>' in messages[0].content %} {{- messages[0].content.replace('<tool_def_sep>', tool_definitions) }} {%- else %} {{- messages[0].content + '\n\n' + tool_definitions }} {%- endif %} {%- else %} {{- tool_definitions.lstrip() }} {%- endif %} {{- '<|im_end|>\n' }}{%- else %} {%- if messages[0].role == 'system' %} {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }} {%- endif %}{%- endif %}{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}{%- for message in messages[::-1] %} {%- set index = (messages|length - 1) - loop.index0 %} {%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %} {%- set ns.multi_step_tool = false %} {%- set ns.last_query_index = index %} {%- endif %}{%- endfor %}{%- for message in messages %} {%- if message.content is string %} {%- set content = message.content %} {%- else %} {%- set content = '' %} {%- endif %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) %} {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {%- set reasoning_content = '' %} {%- if message.reasoning_content is string %} {%- set reasoning_content = message.reasoning_content %} {%- else %} {%- if '</think>' in content %} {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %} {%- set content = content.split('</think>')[-1].lstrip('\n') %} {%- endif %} {%- endif %} {%- if reasoning_content %} {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }} {%- elif '<think>' not in content and '</think>' not in content %} {{- '<|im_start|>' + message.role + '\n<think>\n\n</think>\n\n' + content.lstrip('\n') }} {%- else %} {{- '<|im_start|>' + message.role + '\n' + content }} {%- endif %} {%- if message.tool_calls %} {%- for tool_call in message.tool_calls %} {%- if (loop.first and content) or (not loop.first) %} {{- '\n' }} {%- endif %} {%- if tool_call.function %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '<function name="' ~ tool_call.name ~ '">' }} {%- if tool_call.arguments %} {%- set args_dict = tool_call.arguments %} {%- for param_name, param_value in args_dict.items() %} {{- '<param name="' ~ param_name ~ '">' }} {%- if param_value is string and ('<' in param_value or '&' in param_value or '\n' in param_value) %} {{- '<![CDATA[' + param_value + ']]>' }} {%- else %} {{- param_value }} {%- endif %} {{- '</param>' }} {%- endfor %} {%- endif %} {{- '</function>' }} {%- endfor %} {%- endif %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {%- if message.content is string %} {{- content }} {%- else %} {{- message.content | tojson(ensure_ascii=False) }} {%- endif %} {{- '\n</tool_response>' }} {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} {{- '<|im_end|>\n' }} {%- endif %} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }} {%- if enable_thinking is defined %} {%- if enable_thinking is false %} {{- '<think>\n\n</think>\n\n' }} {%- elif enable_thinking is true %} {{- '<think>\n' }} {%- endif %} {%- endif %}{%- endif %}1234567891011121314151617181920212223242526272829303132333435{ "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 0, "dtype": "bfloat16", "eos_token_id": [ 1, 130073 ], "head_dim": 128, "hidden_act": "silu", "hidden_size": 2048, "initializer_range": 0.02, "intermediate_size": 6144, "max_position_embeddings": 131072, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 16, "num_hidden_layers": 42, "num_key_value_heads": 2, "pad_token_id": 1, "pretraining_tp": 1, "rms_norm_eps": 1e-06, "rope_parameters": { "rope_theta": 5000000, "rope_type": "default" }, "tie_word_embeddings": false, "transformers_version": "5.20.2", "use_cache": true, "vocab_size": 130560}12345678910111213{ "_from_model_config": true, "bos_token_id": 0, "do_sample": true, "eos_token_id": [ 1, 130073 ], "pad_token_id": 1, "temperature": 1.0, "top_p": 0.95, "transformers_version": "5.20.2"}123version https://git-lfs.github.com/spec/v1oid sha256:f2856d44141fe4420577a66eacbc0e31baa1114ce5be1249d38647513394d908size 2679706848123version https://git-lfs.github.com/spec/v1oid sha256:776d8119c2a463b9d33416f4bb8f083bd9a36dfd1d9e2d14b00328bb8de5c9besize 5033557128123version https://git-lfs.github.com/spec/v1oid sha256:c400e3a87bf6e9f4f5a6b4889b6533f47c6b3790fd999f8ac246bba0cf09731fsize 115160123version https://git-lfs.github.com/spec/v1oid sha256:a58ce08d9e325cfcbc611c0cbc80e05390e17d8dd6f26a92e941969ee4ab0b3csize 11620352123456789101112131415161718192021222324252627282930{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}1234567891011121314151617{ "add_prefix_space": null, "backend": "tokenizers", "bos_token": "<s>", "clean_up_tokenization_spaces": false, "eos_token": "</s>", "is_local": true, "legacy": true, "local_files_only": false, "model_max_length": 131072, "pad_token": "</s>", "sp_model_kwargs": {}, "spaces_between_special_tokens": false, "tokenizer_class": "TokenizersBackend", "unk_token": "<unk>", "use_default_system_prompt": false}123version https://git-lfs.github.com/spec/v1oid sha256:26aa8cdfbf9337be7cd187ce3044d05b6a0346519ef0736496c5062111dd6511size 2684620800
Large File Pointer Details
- SHA256: 14e8e7f4ccec07abbb4d090800d63afc1667e25cdd8a72418b9e6472c8441345
- Pointer size: 131 Bytes
- Size of remote file: 490 kB

Large File Pointer Details
- SHA256: 142c6f99e032210fd30fa8b80f50ef042dfda1b74b2df328f3add045a054b2c2
- Pointer size: 131 Bytes
- Size of remote file: 266 kB



