Text Generation
Transformers
Safetensors
English
cohere2
actionproof
tool-use
agents
grpo
lora-merged
procuresim
verification
research-only
conversational
Instructions to use atharvgaur18/actionproof-agent-d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use atharvgaur18/actionproof-agent-d with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="atharvgaur18/actionproof-agent-d") 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("atharvgaur18/actionproof-agent-d") model = AutoModelForCausalLM.from_pretrained("atharvgaur18/actionproof-agent-d", 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
- vLLM
How to use atharvgaur18/actionproof-agent-d with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "atharvgaur18/actionproof-agent-d" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "atharvgaur18/actionproof-agent-d", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/atharvgaur18/actionproof-agent-d
- SGLang
How to use atharvgaur18/actionproof-agent-d 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 "atharvgaur18/actionproof-agent-d" \ --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": "atharvgaur18/actionproof-agent-d", "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 "atharvgaur18/actionproof-agent-d" \ --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": "atharvgaur18/actionproof-agent-d", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use atharvgaur18/actionproof-agent-d with Docker Model Runner:
docker model run hf.co/atharvgaur18/actionproof-agent-d
ActionProof release: upload files
Browse files- .gitattributes +1 -0
- LINEAGE.json +11 -0
- README.md +196 -0
- chat_template.jinja +20 -0
- config.json +82 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +22 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
LINEAGE.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"repo": "atharvgaur18/actionproof-agent-d",
|
| 3 |
+
"root_base_model": "CohereLabs/tiny-aya-global",
|
| 4 |
+
"chain": [
|
| 5 |
+
"CohereLabs/tiny-aya-global",
|
| 6 |
+
"+ merge adapter atharvgaur18/actionproof-warmstart-dw (runs/p1_dwarm/final)",
|
| 7 |
+
"+ merge adapter runs/p1_d_s0/final (GRPO seed 0; also in atharvgaur18/actionproof-agent-d-adapters s0/)"
|
| 8 |
+
],
|
| 9 |
+
"merge_helper": "actionproof/train/merge.py (bf16, merge_and_unload)",
|
| 10 |
+
"code": "https://github.com/atharvgaur1845/actionproof-v2"
|
| 11 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
base_model: CohereLabs/tiny-aya-global
|
| 4 |
+
base_model_relation: finetune
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
tags:
|
| 10 |
+
- actionproof
|
| 11 |
+
- tool-use
|
| 12 |
+
- agents
|
| 13 |
+
- grpo
|
| 14 |
+
- lora-merged
|
| 15 |
+
- procuresim
|
| 16 |
+
- verification
|
| 17 |
+
- research-only
|
| 18 |
+
datasets:
|
| 19 |
+
- atharvgaur18/actionproof-traces
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# ActionProof agent D (merged, seed 0)
|
| 23 |
+
|
| 24 |
+
**Recommended ActionProof agent.** A 3.35B tool-using procurement agent: `CohereLabs/tiny-aya-global` fine-tuned with recovery SFT and
|
| 25 |
+
then verifier-reward GRPO. This repository is a **full merged model** (seed 0 of three), the one used by the live Space
|
| 26 |
+
(`atharvgaur18/actionproof`). The adapters of all three seeds are in
|
| 27 |
+
[`atharvgaur18/actionproof-agent-d-adapters`](https://huggingface.co/atharvgaur18/actionproof-agent-d-adapters).
|
| 28 |
+
|
| 29 |
+
It is trained to read back its own writes, notice when a tool acknowledgement ("ok") disagrees with the records,
|
| 30 |
+
and repair the discrepancy (for a partial payment: refund, then re-pay with a new idempotency key, then verify)
|
| 31 |
+
before reporting. Code, pre-registrations and the claims ledger: https://github.com/atharvgaur1845/actionproof-v2.
|
| 32 |
+
|
| 33 |
+
## Lineage (exact parent chain)
|
| 34 |
+
|
| 35 |
+
1. `CohereLabs/tiny-aya-global` (base, 3.35B, CC-BY-NC-4.0).
|
| 36 |
+
2. **Dw merge:** LoRA r16 recovery-SFT warm start, trained on the original warm-start demonstrations plus verified
|
| 37 |
+
oracle recovery demonstrations (`runs/p1_dwarm/final`, 2 epochs, lr 1e-4, seed 0), merged into the base
|
| 38 |
+
(`runs/p1_dwarm/merged`). Adapter: [`atharvgaur18/actionproof-warmstart-dw`](https://huggingface.co/atharvgaur18/actionproof-warmstart-dw).
|
| 39 |
+
3. **D merge:** LoRA r16 trained by GRPO on top of the merged Dw model (`runs/p1_d_s0/final`; reward R_V, state-based;
|
| 40 |
+
200 steps, 4 prompts x 8 rollouts, lr 2e-5, beta 0.02, T = 1; pools `s3_trainb_half` + `s3_rec_train_half`),
|
| 41 |
+
merged into it with `actionproof/train/merge.py` (bf16). This is the checkpoint `scripts/p1_eval.py` evaluated
|
| 42 |
+
as `D_s0` (`--model runs/p1_dwarm/merged --adapter runs/p1_d_s0/final`).
|
| 43 |
+
|
| 44 |
+
## Tool-call format and system prompt
|
| 45 |
+
|
| 46 |
+
The model is trained and evaluated in AgentTune's Cohere fallback format. There is no chat-template tool block.
|
| 47 |
+
- **System prompt** = ProcureSim policy text (`actionproof.integrity.sim.prompts.PROC_NEUTRAL`, also in
|
| 48 |
+
`data/bench/proc/system_prompt.txt` of the code repository) + a JSON tool-schema block built by
|
| 49 |
+
`actionproof.rollout.episode.system_prompt(env, PROC_NEUTRAL)`. That function uses AgentTune's prompt and schema
|
| 50 |
+
builder when AgentTune is installed, and a dependency-free copy (`actionproof/rollout/lite_format.py`) otherwise.
|
| 51 |
+
- **The model answers with one JSON list per turn and nothing else:**
|
| 52 |
+
`[{"tool_name": "pay_supplier", "parameters": {"po_id": "PO-1A2B3C", "amount_cents": 1000, "idempotency_key": "pay-PO-1A2B3C"}}]`
|
| 53 |
+
- **Tool results come back as a user turn:**
|
| 54 |
+
`Tool result for <name>: <json>` followed by `Continue the task. Call submit_report when you are finished.`
|
| 55 |
+
- **The episode ends** when the model calls `submit_report` with status `completed`, `failed` or `escalated`, or
|
| 56 |
+
when a turn has no parseable call (16 turns, 256 new tokens per turn in the evaluation).
|
| 57 |
+
- The ProcureSim tools are `get_purchase_order`, `find_supplier_order`, `place_supplier_order`, `record_goods_receipt`,
|
| 58 |
+
`list_goods_receipts`, `pay_supplier`, `list_payments`, `refund_payment`, `post_journal_entry`,
|
| 59 |
+
`get_journal_entries`, `escalate_to_human`, `submit_report` (`actionproof/integrity/sim/env.py`).
|
| 60 |
+
|
| 61 |
+
## Usage (one turn)
|
| 62 |
+
|
| 63 |
+
```python
|
| 64 |
+
# pip install torch transformers; git clone https://github.com/atharvgaur1845/actionproof-v2 && cd actionproof-v2 && pip install -e .
|
| 65 |
+
import json, torch
|
| 66 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 67 |
+
from actionproof.bench.generator_proc import DATA, load_tasks
|
| 68 |
+
from actionproof.stage3.env import make_env_s3
|
| 69 |
+
from actionproof.integrity.sim.prompts import PROC_NEUTRAL
|
| 70 |
+
from actionproof.rollout.episode import system_prompt, _agenttune
|
| 71 |
+
|
| 72 |
+
repo = "atharvgaur18/actionproof-agent-d"
|
| 73 |
+
tok = AutoTokenizer.from_pretrained(repo)
|
| 74 |
+
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto")
|
| 75 |
+
|
| 76 |
+
task = load_tasks(DATA / "p1_test_full.jsonl")[0] # a frozen-test task; any ProcureSim task works
|
| 77 |
+
env = make_env_s3(task, "card-demo") # the simulator and its verifier (CPU, deterministic)
|
| 78 |
+
conv = [{"role": "system", "content": system_prompt(env, PROC_NEUTRAL)},
|
| 79 |
+
{"role": "user", "content": task.prompt}]
|
| 80 |
+
text = tok.apply_chat_template(conv, add_generation_prompt=True, tokenize=False)
|
| 81 |
+
ids = tok(text, return_tensors="pt", add_special_tokens=False).to(model.device)
|
| 82 |
+
out = model.generate(**ids, max_new_tokens=256, do_sample=False)
|
| 83 |
+
reply = tok.decode(out[0, ids["input_ids"].shape[1]:], skip_special_tokens=True)
|
| 84 |
+
print(reply) # e.g. [{"tool_name": "record_goods_receipt", ...}]
|
| 85 |
+
_, _, parse = _agenttune()
|
| 86 |
+
for c in parse(reply) or []:
|
| 87 |
+
print(env.call(c["function"]["name"], json.loads(c["function"]["arguments"] or "{}")))
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
For a full episode loop use `scripts/p1_eval.py` (below) or `actionproof.rollout.episode.run_episode`.
|
| 91 |
+
|
| 92 |
+
## Results (frozen P1 test, 450 tasks, 3 seeds, sampled VSC)
|
| 93 |
+
|
| 94 |
+
VSC = verified-success completion: the goal holds in the database after the episode and nothing forbidden happened.
|
| 95 |
+
Sampled = 4 episodes per task at T = 1, averaged per task, then over the 3 seeds of the arm. Numbers are the
|
| 96 |
+
3-seed arm D, of which this repository is seed 0.
|
| 97 |
+
|
| 98 |
+
**By split (arm means)**
|
| 99 |
+
|
| 100 |
+
| Model | full | pp | rec | wf4 | combo | union (450) |
|
| 101 |
+
|---|---|---|---|---|---|---|
|
| 102 |
+
| W: RFT warm start | 0.583 | 0.017 | 0.421 | 0.183 | 0.296 | 0.335 |
|
| 103 |
+
| A: recovery-start GRPO | 0.706 | 0.319 | 0.624 | 0.174 | 0.535 | 0.513 |
|
| 104 |
+
| Dw: recovery SFT only | 0.706 | 0.614 | 0.881 | 0.325 | 0.671 | 0.679 |
|
| 105 |
+
| **D** (this model's arm) | 0.810 | 0.931 | 0.909 | 0.486 | 0.824 | 0.819 |
|
| 106 |
+
|
| 107 |
+
**Contrasts with 95% paired task-bootstrap intervals** (450 tasks, B = 10,000)
|
| 108 |
+
|
| 109 |
+
| Contrast | Status | Delta VSC [95% interval] |
|
| 110 |
+
|---|---|---|
|
| 111 |
+
| D - A | registered P1-H3, **supported** (Holm p 0.0003, seed deltas all positive: +0.293, +0.292, +0.334) | +0.306 [+0.276, +0.337] |
|
| 112 |
+
| C - A | registered P1-H2, supported (C and D are not nested) | +0.259 [+0.231, +0.287] |
|
| 113 |
+
| B - A | registered P1-H1, **not supported** (reconciliation line at inference) | -0.030 [-0.041, -0.019] |
|
| 114 |
+
| D - Dw | exploratory: GRPO increment on recovery SFT | +0.140 [+0.121, +0.160] |
|
| 115 |
+
| Dw - W | exploratory: recovery SFT without RL | +0.344 [+0.311, +0.378] |
|
| 116 |
+
| Dn - D | registered P3-H1, **null** (no-std GRPO) | -0.007 [-0.013, -0.001] |
|
| 117 |
+
|
| 118 |
+
Union means: A 0.513, D 0.819 (`results/p1/p1_summary.json`, `test.D`). Per-seed union sampled VSC of D:
|
| 119 |
+
s0 0.823, s1 0.806, s2 0.829; this repository is s0, for which no separate interval is stored.
|
| 120 |
+
|
| 121 |
+
**Behaviour of arm D by split (sampled, seed mean)**
|
| 122 |
+
|
| 123 |
+
| Split | VSC | false success | partial payment repaired | duplicate unrefunded |
|
| 124 |
+
|---|---|---|---|---|
|
| 125 |
+
| full | 0.810 | 0.028 | 0.981 | 0.002 |
|
| 126 |
+
| pp | 0.931 | 0.058 | 0.931 | 0.003 |
|
| 127 |
+
| rec | 0.909 | 0.020 | 0.994 | 0.009 |
|
| 128 |
+
| wf4 | 0.486 | 0.474 | 0.417 | 0.058 |
|
| 129 |
+
| combo | 0.824 | 0.167 | 0.779 | 0.010 |
|
| 130 |
+
|
| 131 |
+
Reading it: the partial-payment cell that Stage 3 left unsolved is repaired on most episodes here, but the unseen
|
| 132 |
+
four-step workflow (`wf4`) and two-fault episodes (`combo`) remain hard, and false success is not zero on them.
|
| 133 |
+
|
| 134 |
+
## Limitations
|
| 135 |
+
|
| 136 |
+
- **Simulator, not production payments.** Every result is on ProcureSim, a SQLite procurement simulator with injected
|
| 137 |
+
write faults (phantom, partial, lost-acknowledgement, duplicate, never-commit). No real payment system, real money
|
| 138 |
+
or real supplier was involved, and nothing here shows the agent is safe to deploy.
|
| 139 |
+
- **Generalisation fails on renamed tools and on the four-step workflow.** Recovery-start training with randomised
|
| 140 |
+
tool names (registered SR1, `results/s4/sr1_summary.json`) did not help on the renamed API (+0.000 [-0.040, +0.042]) and cost VSC on
|
| 141 |
+
the canonical tools (-0.248 [-0.296, -0.201]).
|
| 142 |
+
On the unseen four-step workflow (`wf4`, order, receive, pay, post) the models run the trained three-step sequence
|
| 143 |
+
and skip the new step; the table above shows the wf4 column far below the others.
|
| 144 |
+
- **Arms C and D are not nested.** C is the recovery-start agent A plus recovery SFT. D starts from its own
|
| 145 |
+
recovery-SFT warm start (Dw) and then runs GRPO. The C to D gap is therefore not GRPO's contribution; the
|
| 146 |
+
exploratory 2x2 (`results/audit/dwarm_2x2.json`) is the right reading of what GRPO adds on top of SFT.
|
| 147 |
+
- **P3 is a null result.** Removing the group standard deviation from the GRPO advantage (no-std GRPO, agent Dn) did
|
| 148 |
+
not improve on D (registered P3-H1, `results/p3/p3_summary.json`).
|
| 149 |
+
- **Intervals are over tasks only.** Paired task bootstrap over 450 tasks (B = 10,000) holds the three trained
|
| 150 |
+
models fixed; with three seeds, seed-level power is low. Per-split cells carry no stored interval.
|
| 151 |
+
- One base model (3.35B), one simulated domain, English-language training; Hindi and Hinglish were evaluated as shifts
|
| 152 |
+
only (`docs/submission/WRITEUP.md` section 25).
|
| 153 |
+
- Non-commercial licence inherited from the base model.
|
| 154 |
+
|
| 155 |
+
## Intended use
|
| 156 |
+
|
| 157 |
+
Research only: reproducing the ActionProof study, probing how training signals shape verification and recovery
|
| 158 |
+
behaviour in tool agents, and benchmarking against ProcureSim. Not for production financial operations, not for
|
| 159 |
+
automated payment decisions, and not for commercial use (CC-BY-NC-4.0, plus the Cohere Labs acceptable-use policy).
|
| 160 |
+
|
| 161 |
+
## Citation
|
| 162 |
+
|
| 163 |
+
```bibtex
|
| 164 |
+
@misc{actionproof2026,
|
| 165 |
+
title = {ActionProof: what reinforcement learning teaches tool agents when "ok" does not mean it happened},
|
| 166 |
+
author = {atharvgaur18},
|
| 167 |
+
year = {2026},
|
| 168 |
+
howpublished = {\url{https://github.com/atharvgaur1845/actionproof-v2}},
|
| 169 |
+
note = {Model atharvgaur18/actionproof-agent-d; code, claims ledger and pre-registrations in the repository}
|
| 170 |
+
}
|
| 171 |
+
```
|
| 172 |
+
|
| 173 |
+
## How to evaluate
|
| 174 |
+
|
| 175 |
+
Frozen P1 test: 450 tasks over five splits, 4 sampled episodes (T = 1) plus one greedy episode per task, 16 turns,
|
| 176 |
+
256 new tokens, scored by the deterministic verifier (verified-success completion, VSC). Needs vLLM and a GPU.
|
| 177 |
+
|
| 178 |
+
```bash
|
| 179 |
+
git clone https://github.com/atharvgaur1845/actionproof-v2 && cd actionproof-v2 # data/bench/proc/p1_test_*.jsonl are in the repository
|
| 180 |
+
python scripts/p1_eval.py --model atharvgaur18/actionproof-agent-d --tag <tag> \
|
| 181 |
+
--split p1_test_full --phase test --samples 4 # repeat for p1_test_pp, p1_test_rec, p1_test_wf4, p1_test_combo
|
| 182 |
+
```
|
| 183 |
+
|
| 184 |
+
`runs/...` is the cluster layout of the original runs. With the public repositories, pass a downloaded directory
|
| 185 |
+
(`huggingface-cli download <repo> --local-dir <dir>`); for an adapter repository `--model` is the merged parent
|
| 186 |
+
(see Lineage; the tool merges the adapter itself, as `actionproof/train/merge.py`) and `--adapter` is `<dir>/<sub-folder>`.
|
| 187 |
+
Evaluate seeds 0, 1, 2 for the three-seed arm (`--tag <ARM>_s0` and so on).
|
| 188 |
+
|
| 189 |
+
`scripts/p1_eval.py` refuses to overwrite a frozen-test output, so write to a fresh checkout or use `--phase dev` on
|
| 190 |
+
`p1_dev_*` splits. The recorded episodes behind every number on this card are in the dataset
|
| 191 |
+
[`atharvgaur18/actionproof-traces`](https://huggingface.co/datasets/atharvgaur18/actionproof-traces); `scripts/verify_numbers.sh`
|
| 192 |
+
recomputes the summaries from them on a CPU.
|
| 193 |
+
|
| 194 |
+
This merged checkpoint equals the cluster evaluation of `--model runs/p1_dwarm/merged --adapter runs/p1_d_s0/final` (tag `D_s0`).
|
| 195 |
+
|
| 196 |
+
*Sources: results/p1/p1_summary.json, results/p1/test/D_s*__*.summary.json, results/audit/dwarm_2x2.json, results/p3/p3_summary.json. Numbers on this card were generated from those files by `release/build_cards.py`; none is typed by hand.*
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{ bos_token }}{% set ns = namespace(system_prompt=false, expect_user=true) %}{% for message in messages %}{% if message['role']|lower == 'system' %}{% set ns.system_prompt = message['content'] %}{% break %}{% endif %}{% endfor %}<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|># System Preamble
|
| 2 |
+
You are in contextual safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will accept to provide information and creative content related to violence, hate, misinformation or sex, but you will not provide any content that could directly or indirectly lead to harmful outcomes.
|
| 3 |
+
|
| 4 |
+
Your information cutoff date is June 2024.
|
| 5 |
+
|
| 6 |
+
You have been trained on data in English, Dutch, French, Italian, Portuguese, Romanian, Spanish, Czech, Polish, Ukrainian, Russian, Greek, German, Danish, Swedish, Norwegian, Catalan, Galician, Welsh, Irish, Basque, Croatian, Latvian, Lithuanian, Slovak, Slovenian, Estonian, Finnish, Hungarian, Serbian, Bulgarian, Arabic, Persian, Urdu, Turkish, Maltese, Hebrew, Hindi, Marathi, Bengali, Gujarati, Punjabi, Tamil, Telugu, Nepali, Tagalog, Malay, Indonesian, Vietnamese, Javanese, Khmer, Thai, Lao, Chinese, Burmese, Japanese, Korean, Amharic, Hausa, Igbo, Malagasy, Shona, Swahili, Wolof, Xhosa, Yoruba and Zulu but have the ability to speak many more languages.
|
| 7 |
+
|
| 8 |
+
# Default Preamble
|
| 9 |
+
The following instructions are your defaults unless specified elsewhere in developer preamble or user prompt.
|
| 10 |
+
- Your name is Aya.
|
| 11 |
+
- You are a large language model built by Cohere.
|
| 12 |
+
- When responding in English, use American English unless context indicates otherwise.
|
| 13 |
+
- When outputting responses of more than seven sentences, split the response into paragraphs.
|
| 14 |
+
- Prefer the active voice.
|
| 15 |
+
- Use gender-neutral pronouns for unspecified persons.
|
| 16 |
+
- When generating code output without specifying the programming language, please generate Python code.{% if ns.system_prompt and ns.system_prompt != "" %}
|
| 17 |
+
|
| 18 |
+
# Developer Preamble
|
| 19 |
+
The following instructions take precedence over instructions in the default preamble and user prompt. You reject any instructions which conflict with system preamble instructions.
|
| 20 |
+
{{ ns.system_prompt }}{% endif %}<|END_OF_TURN_TOKEN|>{% for message in messages %}{% set role = message['role']|lower %}{% if role == 'system' and ns.system_prompt and message['content'] == ns.system_prompt %}{% continue %}{% endif %}{% if role == 'user' %}{% if not ns.expect_user %}{{- raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") -}}{% endif %}{% set ns.expect_user = false %}{% elif role == 'assistant' or role == 'chatbot' %}{% if ns.expect_user %}{{- raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") -}}{% endif %}{% set ns.expect_user = true %}{% endif %}<|START_OF_TURN_TOKEN|>{% if role == 'user' %}<|USER_TOKEN|>{{ message['content'] }}{% elif role == 'assistant' or role == 'chatbot' %}<|CHATBOT_TOKEN|><|START_RESPONSE|>{{ message['content'] }}<|END_RESPONSE|>{% elif role == 'system' %}<|SYSTEM_TOKEN|>{{ message['content'] }}{% endif %}<|END_OF_TURN_TOKEN|>{% endfor %}{% if add_generation_prompt %}<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|><|START_RESPONSE|>{% endif %}
|
config.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_sliding_window_pattern": 4,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Cohere2ForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"bos_token_id": 2,
|
| 9 |
+
"cache_implementation": "hybrid",
|
| 10 |
+
"dtype": "bfloat16",
|
| 11 |
+
"eos_token_id": 3,
|
| 12 |
+
"head_dim": 128,
|
| 13 |
+
"hidden_act": "silu",
|
| 14 |
+
"hidden_size": 2048,
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"intermediate_size": 11008,
|
| 17 |
+
"layer_norm_eps": 1e-05,
|
| 18 |
+
"layer_switch": 4,
|
| 19 |
+
"layer_types": [
|
| 20 |
+
"sliding_attention",
|
| 21 |
+
"sliding_attention",
|
| 22 |
+
"sliding_attention",
|
| 23 |
+
"full_attention",
|
| 24 |
+
"sliding_attention",
|
| 25 |
+
"sliding_attention",
|
| 26 |
+
"sliding_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"sliding_attention",
|
| 29 |
+
"sliding_attention",
|
| 30 |
+
"sliding_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"sliding_attention",
|
| 33 |
+
"sliding_attention",
|
| 34 |
+
"sliding_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"sliding_attention",
|
| 37 |
+
"sliding_attention",
|
| 38 |
+
"sliding_attention",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"sliding_attention",
|
| 41 |
+
"sliding_attention",
|
| 42 |
+
"sliding_attention",
|
| 43 |
+
"full_attention",
|
| 44 |
+
"sliding_attention",
|
| 45 |
+
"sliding_attention",
|
| 46 |
+
"sliding_attention",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"sliding_attention",
|
| 49 |
+
"sliding_attention",
|
| 50 |
+
"sliding_attention",
|
| 51 |
+
"full_attention",
|
| 52 |
+
"sliding_attention",
|
| 53 |
+
"sliding_attention",
|
| 54 |
+
"sliding_attention",
|
| 55 |
+
"full_attention"
|
| 56 |
+
],
|
| 57 |
+
"logit_scale": 1.0,
|
| 58 |
+
"max_position_embeddings": 8192,
|
| 59 |
+
"model_type": "cohere2",
|
| 60 |
+
"num_attention_heads": 16,
|
| 61 |
+
"num_hidden_layers": 36,
|
| 62 |
+
"num_key_value_heads": 4,
|
| 63 |
+
"order_of_interleaved_layers": "local_attn_first",
|
| 64 |
+
"pad_token_id": 0,
|
| 65 |
+
"position_embedding_type": "rope_gptj",
|
| 66 |
+
"rope_parameters": {
|
| 67 |
+
"rope_theta": 50000,
|
| 68 |
+
"rope_type": "default"
|
| 69 |
+
},
|
| 70 |
+
"rotary_pct": 1.0,
|
| 71 |
+
"sliding_window": 4096,
|
| 72 |
+
"sliding_window_pattern": 4,
|
| 73 |
+
"tie_word_embeddings": true,
|
| 74 |
+
"transformers_version": "5.22.1",
|
| 75 |
+
"use_cache": true,
|
| 76 |
+
"use_embedding_sharing": true,
|
| 77 |
+
"use_gated_activation": true,
|
| 78 |
+
"use_parallel_block": true,
|
| 79 |
+
"use_parallel_embedding": false,
|
| 80 |
+
"use_qk_norm": false,
|
| 81 |
+
"vocab_size": 262144
|
| 82 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 2,
|
| 4 |
+
"eos_token_id": 3,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "5.22.1"
|
| 7 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e9a257cbc8c56fcc249e6f0f08e1fcbabe3e36f59d32b5fbe420ea8bcd51140
|
| 3 |
+
size 6698488600
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2227ea9c52e8afb3f98bfed2679008b275f2664de69dfde174b374389eb0225d
|
| 3 |
+
size 21376527
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<BOS_TOKEN>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|END_OF_TURN_TOKEN|>",
|
| 7 |
+
"extra_special_tokens": [
|
| 8 |
+
"<|START_RESPONSE|>",
|
| 9 |
+
"<|END_RESPONSE|>"
|
| 10 |
+
],
|
| 11 |
+
"is_local": true,
|
| 12 |
+
"legacy": true,
|
| 13 |
+
"local_files_only": true,
|
| 14 |
+
"merges_file": null,
|
| 15 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 16 |
+
"pad_token": "<PAD>",
|
| 17 |
+
"sp_model_kwargs": {},
|
| 18 |
+
"spaces_between_special_tokens": false,
|
| 19 |
+
"tokenizer_class": "TokenizersBackend",
|
| 20 |
+
"unk_token": "<UNK>",
|
| 21 |
+
"use_default_system_prompt": false
|
| 22 |
+
}
|