Text Generation
Transformers
Safetensors
English
testgeniy
causal-lm
reasoning
mathematics
logic
long-context
4k-context
small-language-model
Instructions to use Asilarkness/testgeniy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Asilarkness/testgeniy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Asilarkness/testgeniy")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Asilarkness/testgeniy", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Asilarkness/testgeniy with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Asilarkness/testgeniy" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Asilarkness/testgeniy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Asilarkness/testgeniy
- SGLang
How to use Asilarkness/testgeniy 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 "Asilarkness/testgeniy" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Asilarkness/testgeniy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Asilarkness/testgeniy" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Asilarkness/testgeniy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Asilarkness/testgeniy with Docker Model Runner:
docker model run hf.co/Asilarkness/testgeniy
Bootstrap on-policy error-targeted reasoning v4
Browse files
candidates/budgie-alignment-v2/onpolicy-error-targeted-v4/bootstrap/ONPOLICY_ERROR_TARGETED_SFT_RL_V4_POLICY.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Budgie on-policy error-targeted reasoning SFT → constrained RL v4
|
| 2 |
+
|
| 3 |
+
## Motivation
|
| 4 |
+
|
| 5 |
+
Generic long-solution imitation shifted Budgie away from its retained reasoning behavior. V4 trains only on Budgie's own frontier: its correct trajectories become anchors, and its failed trajectories receive concise, verified corrections. RL remains blocked until the SFT anchor is Pareto-safe.
|
| 6 |
+
|
| 7 |
+
## Data
|
| 8 |
+
|
| 9 |
+
- Start from the 800 decontaminated, symbolically verified OpenR1 reasoning pool from v3.
|
| 10 |
+
- Select a stratified frontier subset across algebra, geometry, number theory, combinatorics, inequalities, calculus, logic/puzzles, medium, and hard rows.
|
| 11 |
+
- Generate two Budgie trajectories per problem: greedy and temperature-controlled.
|
| 12 |
+
- Verify every trajectory against the reference with `math_verify`.
|
| 13 |
+
- Retain correct Budgie trajectories as self-anchors.
|
| 14 |
+
- For failures, ask Qwen3.8-27B for a concise minimal correction using the problem, failed attempts, and verified reference.
|
| 15 |
+
- Independently verify every correction with `math_verify`; reject unverifiable corrections.
|
| 16 |
+
- Keep the 208-row random-math development split and all fixed benchmark rows evaluation-only.
|
| 17 |
+
|
| 18 |
+
## SFT
|
| 19 |
+
|
| 20 |
+
- Train from `verified-math-a025`, never from a rejected branch.
|
| 21 |
+
- Mix corrected failures, correct self-anchors, and manual information-retention examples.
|
| 22 |
+
- FP32 master weights, BF16 autocast, assistant-only loss.
|
| 23 |
+
- Sampled-action KL to the immutable leader.
|
| 24 |
+
- Curriculum from frontier-medium to frontier-hard.
|
| 25 |
+
- Save early checkpoints and search task-vector alphas.
|
| 26 |
+
|
| 27 |
+
## Hard acceptance
|
| 28 |
+
|
| 29 |
+
Stage A must improve held-out random verified math and not regress:
|
| 30 |
+
|
| 31 |
+
- GSM8K 5/30;
|
| 32 |
+
- MATH 3/15;
|
| 33 |
+
- ARC 11/30;
|
| 34 |
+
- FOLIO 13/30;
|
| 35 |
+
- HelpSteer 97/200;
|
| 36 |
+
- information-management pass rate;
|
| 37 |
+
- honesty and repetition.
|
| 38 |
+
|
| 39 |
+
Only after Stage A passes may Stage B run constrained GRPO with math anchors, dual KL to the SFT anchor and original leader, gradient projection, and rollback every 4–8 updates.
|
| 40 |
+
|
| 41 |
+
No benchmark-family row may enter training. Model size and tokenizer remain unchanged.
|