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 best scaled combo A080 candidate
Browse files- candidates/best-scaled-combo-a080/README.md +49 -0
- candidates/best-scaled-combo-a080/config.json +44 -0
- candidates/best-scaled-combo-a080/manifest.json +68 -0
- candidates/best-scaled-combo-a080/model.safetensors +3 -0
- candidates/best-scaled-combo-a080/tokenizer.json +0 -0
- candidates/best-scaled-combo-a080/tokenizer_config.json +21 -0
candidates/best-scaled-combo-a080/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- testgeniy
|
| 7 |
+
- causal-lm
|
| 8 |
+
- reasoning
|
| 9 |
+
- mathematics
|
| 10 |
+
- logic
|
| 11 |
+
- dialogue
|
| 12 |
+
- dpo
|
| 13 |
+
- lora
|
| 14 |
+
- 4k-context
|
| 15 |
+
- small-language-model
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# TestGeniy Best Scaled Combo A080
|
| 19 |
+
|
| 20 |
+
A 488M-parameter TestGeniy research checkpoint optimized for mathematical reasoning, logic, and dialogue retention at a 4096-token context window.
|
| 21 |
+
|
| 22 |
+
## Training
|
| 23 |
+
|
| 24 |
+
This candidate combines two independently trained low-rank task vectors: a balanced math/logic/dialogue adapter and an advanced-math adapter. The advanced vector is merged at 0.5, then the combined update is scaled to 0.8 from the selected SFT anchor.
|
| 25 |
+
|
| 26 |
+
Training data includes verifier-filtered augmented problems from `nvidia/OpenMathInstruct-2`, concise `open-r1/OpenR1-Math-220k` solutions, and replay from StrategyQA, ARC-Challenge train, FOLIO train, OASST1, and HelpSteer2. Evaluation questions were excluded by normalized exact matching and shared 12-token-window filtering. No held-out benchmark rows were used for training.
|
| 27 |
+
|
| 28 |
+
## Expanded paired gate
|
| 29 |
+
|
| 30 |
+
Greedy user-only decoding with fixed seed 20260819.
|
| 31 |
+
|
| 32 |
+
| Benchmark | Selected SFT | This candidate |
|
| 33 |
+
|---|---:|---:|
|
| 34 |
+
| GSM8K | 4/30 | 6/30 |
|
| 35 |
+
| MATH-500 | 2/15 | 3/15 |
|
| 36 |
+
| ARC-Challenge | 4/30 | 8/30 |
|
| 37 |
+
| FOLIO | 12/30 | 12/30 |
|
| 38 |
+
| HelpSteer2 pairwise | 48.0% | 47.5% |
|
| 39 |
+
| Composite | 25.60% | 30.83% |
|
| 40 |
+
|
| 41 |
+
OASST1 validation response NLL improved from 3.04000 to 3.03916 on 100 fixed English human direct-response pairs.
|
| 42 |
+
|
| 43 |
+
## Architecture
|
| 44 |
+
|
| 45 |
+
24 transformer layers, hidden size 1280, 10 attention heads, 2 KV heads, SwiGLU FFN size 3584, tied embeddings, 4K context, RoPE theta 500000, local attention block 1024, and full NoPE attention in layers 3, 7, 11, 15, 19, and 23.
|
| 46 |
+
|
| 47 |
+
## Limitations
|
| 48 |
+
|
| 49 |
+
This is a small experimental model. It remains weak on difficult mathematics and can produce incorrect or repetitive reasoning. The reported gate is an expanded regression gate, not a full benchmark leaderboard result.
|
candidates/best-scaled-combo-a080/config.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"TestGeniyForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"model_type": "testgeniy",
|
| 6 |
+
"vocab_size": 49216,
|
| 7 |
+
"hidden_size": 1280,
|
| 8 |
+
"num_hidden_layers": 24,
|
| 9 |
+
"num_attention_heads": 10,
|
| 10 |
+
"num_key_value_heads": 2,
|
| 11 |
+
"intermediate_size": 3584,
|
| 12 |
+
"head_dim": 128,
|
| 13 |
+
"max_position_embeddings": 4096,
|
| 14 |
+
"rope_theta": 500000.0,
|
| 15 |
+
"local_block_size": 1024,
|
| 16 |
+
"layer_types": [
|
| 17 |
+
"sliding_attention",
|
| 18 |
+
"sliding_attention",
|
| 19 |
+
"sliding_attention",
|
| 20 |
+
"full_attention",
|
| 21 |
+
"sliding_attention",
|
| 22 |
+
"sliding_attention",
|
| 23 |
+
"sliding_attention",
|
| 24 |
+
"full_attention",
|
| 25 |
+
"sliding_attention",
|
| 26 |
+
"sliding_attention",
|
| 27 |
+
"sliding_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"sliding_attention",
|
| 30 |
+
"sliding_attention",
|
| 31 |
+
"sliding_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"sliding_attention",
|
| 34 |
+
"sliding_attention",
|
| 35 |
+
"sliding_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"sliding_attention",
|
| 38 |
+
"sliding_attention",
|
| 39 |
+
"sliding_attention",
|
| 40 |
+
"full_attention"
|
| 41 |
+
],
|
| 42 |
+
"base_checkpoint": "best_scaled_combo_a080",
|
| 43 |
+
"weights_updated": true
|
| 44 |
+
}
|
candidates/best-scaled-combo-a080/manifest.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"release": "best_scaled_combo_a080",
|
| 3 |
+
"base": "sft_pilot_lr7e7_step020",
|
| 4 |
+
"context_length": 4096,
|
| 5 |
+
"weights_updated": true,
|
| 6 |
+
"benchmark_rows_used": false,
|
| 7 |
+
"training": {
|
| 8 |
+
"balanced_lora": {
|
| 9 |
+
"rank": 8,
|
| 10 |
+
"alpha": 16,
|
| 11 |
+
"step": 50
|
| 12 |
+
},
|
| 13 |
+
"advanced_lora": {
|
| 14 |
+
"rank": 16,
|
| 15 |
+
"alpha": 32,
|
| 16 |
+
"step": 50,
|
| 17 |
+
"merge_alpha": 0.5
|
| 18 |
+
},
|
| 19 |
+
"global_task_vector_scale": 0.8
|
| 20 |
+
},
|
| 21 |
+
"data": {
|
| 22 |
+
"openmath2": "1500 augmented_gsm8k + 1000 augmented_math, math_verify filtered",
|
| 23 |
+
"replay": "OpenR1-Math, StrategyQA, ARC train, FOLIO train, OASST1, HelpSteer2",
|
| 24 |
+
"decontamination": "exact normalized hash and shared 12-token window against held-out evaluation questions"
|
| 25 |
+
},
|
| 26 |
+
"gate": {
|
| 27 |
+
"protocol": {
|
| 28 |
+
"seed": 20260819,
|
| 29 |
+
"decoding": "greedy",
|
| 30 |
+
"prompt": "user-only",
|
| 31 |
+
"gsm8k_n": 30,
|
| 32 |
+
"math500_n": 15,
|
| 33 |
+
"arc_n": 30,
|
| 34 |
+
"folio_n": 30,
|
| 35 |
+
"helpsteer2_pairs": 200
|
| 36 |
+
},
|
| 37 |
+
"selected_sft": {
|
| 38 |
+
"gsm8k": 13.333333333333334,
|
| 39 |
+
"math500": 13.333333333333334,
|
| 40 |
+
"arc": 13.333333333333334,
|
| 41 |
+
"folio": 40.0,
|
| 42 |
+
"helpsteer2": 48.0,
|
| 43 |
+
"composite": 25.6
|
| 44 |
+
},
|
| 45 |
+
"best_scaled_combo": {
|
| 46 |
+
"gsm8k": 20.0,
|
| 47 |
+
"math500": 20.0,
|
| 48 |
+
"arc": 26.666666666666668,
|
| 49 |
+
"folio": 40.0,
|
| 50 |
+
"helpsteer2": 47.5,
|
| 51 |
+
"composite": 30.833333333333332
|
| 52 |
+
},
|
| 53 |
+
"checkpoint": "/marimo/testgeniy_data/best_scaled_combo_a080.pt",
|
| 54 |
+
"data": [
|
| 55 |
+
"/marimo/testgeniy_data/openmath2_verified_manifest.json",
|
| 56 |
+
"/marimo/testgeniy_data/sft_v1_manifest.json"
|
| 57 |
+
],
|
| 58 |
+
"delta_composite": 5.233333333333331
|
| 59 |
+
},
|
| 60 |
+
"oasst1": {
|
| 61 |
+
"split": "OpenAssistant/oasst1:validation",
|
| 62 |
+
"selection": "English non-synthetic direct prompter-assistant rank 0 or unranked, sorted message_id, max_len 768",
|
| 63 |
+
"n": 100,
|
| 64 |
+
"selected_sft_response_nll": 3.040004561831332,
|
| 65 |
+
"best_scaled_response_nll": 3.0391626408923074,
|
| 66 |
+
"delta": -0.0008419209390246858
|
| 67 |
+
}
|
| 68 |
+
}
|
candidates/best-scaled-combo-a080/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f57967d1020d9bd6fc4aea8924e81f73e1de6f88773948a708984350bfe63729
|
| 3 |
+
size 1101624520
|
candidates/best-scaled-combo-a080/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
candidates/best-scaled-combo-a080/tokenizer_config.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<|begin|>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|end|>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"extra_special_tokens": [
|
| 9 |
+
"<|doc|>",
|
| 10 |
+
"<|system|>",
|
| 11 |
+
"<|user|>",
|
| 12 |
+
"<|assistant|>"
|
| 13 |
+
],
|
| 14 |
+
"is_local": true,
|
| 15 |
+
"local_files_only": false,
|
| 16 |
+
"model_max_length": 1000000000000,
|
| 17 |
+
"pad_token": "<|pad|>",
|
| 18 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 19 |
+
"unk_token": "<|endoftext|>",
|
| 20 |
+
"vocab_size": 49152
|
| 21 |
+
}
|