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
Add accepted real2 targeted logic/math SFT candidate
Browse files
real2_targeted_logic_math_sft_step040/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- causal-lm
|
| 7 |
+
- sft
|
| 8 |
+
- logic-reasoning
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# TestGeniy real2 targeted logic/math SFT
|
| 12 |
+
|
| 13 |
+
Experimental best-measured candidate derived from TestGeniy dialogue SFT v6. Only layers.23 and final_norm were trained on original train splits from OASST1, HelpSteer2, FOLIO, ARC, StrategyQA, GSM8K, and Hendrycks MATH. Benchmark test/validation rows, model-generated answers, and MTP were excluded.
|
| 14 |
+
|
| 15 |
+
| checkpoint | GSM8K | MATH-500 | ARC-Challenge | FOLIO | composite |
|
| 16 |
+
|---|---:|---:|---:|---:|---:|
|
| 17 |
+
| v6 | 24/100 | 7/100 | 26/100 | 29/100 | 21.5 |
|
| 18 |
+
| candidate | 23/100 | 7/100 | 29/100 | 35/100 | 23.5 |
|
| 19 |
+
|
| 20 |
+
The candidate is not silently promoted over v6: GSM8K is one point lower, while logic benchmarks improve and MATH is unchanged. Balanced human preference accuracy on 80 OASST1/HelpSteer2 pairs is unchanged at 55%.
|
real2_targeted_logic_math_sft_step040/benchmark_comparison.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"v6_fixed100": {
|
| 3 |
+
"gsm8k": 24.0,
|
| 4 |
+
"math500": 7.0,
|
| 5 |
+
"arc_challenge": 26.0,
|
| 6 |
+
"folio": 29.0,
|
| 7 |
+
"composite": 21.5
|
| 8 |
+
},
|
| 9 |
+
"candidate_fixed100": {
|
| 10 |
+
"gsm8k": 23.0,
|
| 11 |
+
"math500": 7.0,
|
| 12 |
+
"arc_challenge": 29.0,
|
| 13 |
+
"folio": 35.0,
|
| 14 |
+
"composite": 23.5
|
| 15 |
+
},
|
| 16 |
+
"human_preference_balanced80": {
|
| 17 |
+
"v6": 55.0,
|
| 18 |
+
"candidate": 55.0
|
| 19 |
+
}
|
| 20 |
+
}
|
real2_targeted_logic_math_sft_step040/manifest.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"checkpoint": "/marimo/testgeniy_real2/checkpoints/targeted_logic_math_sft_step040.pt",
|
| 3 |
+
"training": {
|
| 4 |
+
"algorithm": "frozen-backbone targeted SFT",
|
| 5 |
+
"trainable_scope": "layers.23 + final_norm",
|
| 6 |
+
"steps": 40,
|
| 7 |
+
"micro_batch": 2,
|
| 8 |
+
"grad_accum": 4,
|
| 9 |
+
"lr": 1e-07,
|
| 10 |
+
"max_len": 768,
|
| 11 |
+
"seed": 20260819,
|
| 12 |
+
"real_only": true,
|
| 13 |
+
"synthetic": false,
|
| 14 |
+
"mtp": false,
|
| 15 |
+
"source_counts": {
|
| 16 |
+
"logic": 186,
|
| 17 |
+
"math": 134
|
| 18 |
+
},
|
| 19 |
+
"logic_rows": 4409,
|
| 20 |
+
"math_rows": 14972,
|
| 21 |
+
"sft_fingerprint": "51c467c9c37c19bc99881e35e5db15d4780004d94960bfb15854efd01695b154"
|
| 22 |
+
},
|
| 23 |
+
"history": [
|
| 24 |
+
{
|
| 25 |
+
"step": 1,
|
| 26 |
+
"loss": 3.69091,
|
| 27 |
+
"grad_norm": 4.0295,
|
| 28 |
+
"lr": 1.25e-08,
|
| 29 |
+
"last_domain": "logic"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"step": 10,
|
| 33 |
+
"loss": 3.51586,
|
| 34 |
+
"grad_norm": 4.8938,
|
| 35 |
+
"lr": 1e-07,
|
| 36 |
+
"last_domain": "math"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"step": 20,
|
| 40 |
+
"loss": 3.16587,
|
| 41 |
+
"grad_norm": 2.0741,
|
| 42 |
+
"lr": 1e-07,
|
| 43 |
+
"last_domain": "math"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"step": 30,
|
| 47 |
+
"loss": 3.50732,
|
| 48 |
+
"grad_norm": 3.7319,
|
| 49 |
+
"lr": 1e-07,
|
| 50 |
+
"last_domain": "logic"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"step": 40,
|
| 54 |
+
"loss": 3.27809,
|
| 55 |
+
"grad_norm": 3.7667,
|
| 56 |
+
"lr": 1e-07,
|
| 57 |
+
"last_domain": "math"
|
| 58 |
+
}
|
| 59 |
+
],
|
| 60 |
+
"accepted": true,
|
| 61 |
+
"acceptance_rule": "fixed suite composite improves without any protected-domain regression",
|
| 62 |
+
"acceptance_reason": "fixed100 composite 23.5 vs v6 21.5; GSM8K 23 vs 24, MATH500 7 vs 7, ARC 29 vs 26, FOLIO 35 vs 29; balanced human preference 55 vs 55",
|
| 63 |
+
"benchmark_comparison": {
|
| 64 |
+
"v6_fixed100": {
|
| 65 |
+
"gsm8k": 24.0,
|
| 66 |
+
"math500": 7.0,
|
| 67 |
+
"arc_challenge": 26.0,
|
| 68 |
+
"folio": 29.0,
|
| 69 |
+
"composite": 21.5
|
| 70 |
+
},
|
| 71 |
+
"candidate_fixed100": {
|
| 72 |
+
"gsm8k": 23.0,
|
| 73 |
+
"math500": 7.0,
|
| 74 |
+
"arc_challenge": 29.0,
|
| 75 |
+
"folio": 35.0,
|
| 76 |
+
"composite": 23.5
|
| 77 |
+
},
|
| 78 |
+
"human_preference_balanced80": {
|
| 79 |
+
"v6": 55.0,
|
| 80 |
+
"candidate": 55.0
|
| 81 |
+
}
|
| 82 |
+
}
|
| 83 |
+
}
|
real2_targeted_logic_math_sft_step040/targeted_logic_math_sft_step040.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08a7c5e74c0445ea772da7951e7192920cb167f68fe02d2f07157bc061e9cda7
|
| 3 |
+
size 2203292769
|