Text Generation
Transformers
Safetensors
Polish
English
llama
typed-decisions
decision-making
classification
calibration
polish
conversational
text-generation-inference
Instructions to use Remek/basal-2.0-4.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Remek/basal-2.0-4.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Remek/basal-2.0-4.5B") 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("Remek/basal-2.0-4.5B") model = AutoModelForCausalLM.from_pretrained("Remek/basal-2.0-4.5B", 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 Remek/basal-2.0-4.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Remek/basal-2.0-4.5B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Remek/basal-2.0-4.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Remek/basal-2.0-4.5B
- SGLang
How to use Remek/basal-2.0-4.5B 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 "Remek/basal-2.0-4.5B" \ --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": "Remek/basal-2.0-4.5B", "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 "Remek/basal-2.0-4.5B" \ --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": "Remek/basal-2.0-4.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Remek/basal-2.0-4.5B with Docker Model Runner:
docker model run hf.co/Remek/basal-2.0-4.5B
Add files using upload-large-folder tool
Browse files- CALIBRATION.json +136 -0
- CALIBRATION.o2.json +136 -0
- CALIBRATION.think.json +135 -0
- SHA256SUMS +17 -0
- basal.json +15 -0
- chat_template.jinja +4 -0
- config.json +35 -0
- generation_config.json +10 -0
- model.safetensors +3 -0
- think/basal.json +15 -0
- think/chat_template.jinja +4 -0
- think/config.json +35 -0
- think/generation_config.json +10 -0
- think/model.safetensors +3 -0
- think/tokenizer.json +0 -0
- think/tokenizer_config.json +27 -0
- tokenizer.json +0 -0
- tokenizer_config.json +27 -0
CALIBRATION.json
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"prompt": 2,
|
| 3 |
+
"orders": 1,
|
| 4 |
+
"method": "temperature per question type and per option-count bucket (choice), by NLL, fitted on the out-of-distribution calibration split only; thresholds per type: the most permissive threshold whose accepted calibration decisions have a one-sided 95% Clopper-Pearson upper bound <= max_error; a type without one defers",
|
| 5 |
+
"temperature_per_prim": {
|
| 6 |
+
"choice": 1.3939382634489992,
|
| 7 |
+
"noul": 2.82842712474619,
|
| 8 |
+
"score": 2.44810708660931
|
| 9 |
+
},
|
| 10 |
+
"temperature_per_bucket": {
|
| 11 |
+
"choice": {
|
| 12 |
+
"2-10": 1.8340080864093422,
|
| 13 |
+
"11-26": 1.241857812073484,
|
| 14 |
+
"27-255": 1.059463094359295
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
+
"thresholds": {
|
| 18 |
+
"0.01": {
|
| 19 |
+
"confidence": null,
|
| 20 |
+
"method": "per type: the most permissive threshold whose accepted calibration decisions have a one-sided 95% Clopper-Pearson upper bound <= max_error; a type without one defers",
|
| 21 |
+
"per_type": {
|
| 22 |
+
"choice": {
|
| 23 |
+
"confidence": null,
|
| 24 |
+
"heldout_coverage": 0.0,
|
| 25 |
+
"heldout_error": null
|
| 26 |
+
},
|
| 27 |
+
"noul": {
|
| 28 |
+
"confidence": null,
|
| 29 |
+
"heldout_coverage": 0.0,
|
| 30 |
+
"heldout_error": null
|
| 31 |
+
},
|
| 32 |
+
"score": {
|
| 33 |
+
"confidence": null,
|
| 34 |
+
"heldout_coverage": 0.0,
|
| 35 |
+
"heldout_error": null
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"heldout_coverage": 0.0,
|
| 39 |
+
"heldout_error": null
|
| 40 |
+
},
|
| 41 |
+
"0.05": {
|
| 42 |
+
"confidence": null,
|
| 43 |
+
"method": "per type: the most permissive threshold whose accepted calibration decisions have a one-sided 95% Clopper-Pearson upper bound <= max_error; a type without one defers",
|
| 44 |
+
"per_type": {
|
| 45 |
+
"choice": {
|
| 46 |
+
"confidence": 0.9322699589043795,
|
| 47 |
+
"heldout_coverage": 0.3940542361462018,
|
| 48 |
+
"heldout_error": 0.023936738619363074
|
| 49 |
+
},
|
| 50 |
+
"noul": {
|
| 51 |
+
"confidence": 0.8915736513972552,
|
| 52 |
+
"heldout_coverage": 0.37426679280983915,
|
| 53 |
+
"heldout_error": 0.020222446916076886
|
| 54 |
+
},
|
| 55 |
+
"score": {
|
| 56 |
+
"confidence": null,
|
| 57 |
+
"heldout_coverage": 0.01175285426460712,
|
| 58 |
+
"heldout_error": 0.22857142857142854
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"heldout_coverage": 0.33232358345334456,
|
| 62 |
+
"heldout_error": 0.02390914524805743
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"gates": {
|
| 66 |
+
"ece_lofo": {
|
| 67 |
+
"choice": {
|
| 68 |
+
"pooled": 0.012308234464218113,
|
| 69 |
+
"n": 11874,
|
| 70 |
+
"gate": 0.05,
|
| 71 |
+
"pass": true
|
| 72 |
+
},
|
| 73 |
+
"noul": {
|
| 74 |
+
"pooled": 0.03186722948382228,
|
| 75 |
+
"n": 5285,
|
| 76 |
+
"gate": 0.05,
|
| 77 |
+
"pass": true
|
| 78 |
+
},
|
| 79 |
+
"score": {
|
| 80 |
+
"pooled": 0.030276060779249152,
|
| 81 |
+
"n": 2978,
|
| 82 |
+
"gate": 0.05,
|
| 83 |
+
"pass": true
|
| 84 |
+
}
|
| 85 |
+
},
|
| 86 |
+
"ece_worst_fold": 0.1014424717632049,
|
| 87 |
+
"worst_fold": "agent",
|
| 88 |
+
"automated_at": {
|
| 89 |
+
"0.01": 0.0,
|
| 90 |
+
"0.05": 0.33232358345334456
|
| 91 |
+
},
|
| 92 |
+
"automated_error": {
|
| 93 |
+
"0.01": null,
|
| 94 |
+
"0.05": 0.02390914524805743
|
| 95 |
+
},
|
| 96 |
+
"note": "held-out numbers: every evaluation row predicted by the fit without its family"
|
| 97 |
+
},
|
| 98 |
+
"test": {
|
| 99 |
+
"T": {
|
| 100 |
+
"choice": {
|
| 101 |
+
"acc": 0.7870136432541688,
|
| 102 |
+
"ece": 0.014067322629837065,
|
| 103 |
+
"n": 11874
|
| 104 |
+
},
|
| 105 |
+
"noul": {
|
| 106 |
+
"acc": 0.8306527909176916,
|
| 107 |
+
"ece": 0.03343366640192696,
|
| 108 |
+
"n": 5285
|
| 109 |
+
},
|
| 110 |
+
"score": {
|
| 111 |
+
"acc": 0.6040967092008059,
|
| 112 |
+
"ece": 0.02988934980023047,
|
| 113 |
+
"n": 2978
|
| 114 |
+
},
|
| 115 |
+
"all": {
|
| 116 |
+
"acc": 0.771415801757958,
|
| 117 |
+
"ece": 0.01582616023538169,
|
| 118 |
+
"n": 20137
|
| 119 |
+
}
|
| 120 |
+
},
|
| 121 |
+
"note": "evaluation pool (development and test splits), full fit"
|
| 122 |
+
},
|
| 123 |
+
"n": {
|
| 124 |
+
"fit": 3560,
|
| 125 |
+
"many": 1500,
|
| 126 |
+
"eval": 20137
|
| 127 |
+
},
|
| 128 |
+
"engine": "fast",
|
| 129 |
+
"fitted_on": {
|
| 130 |
+
"split": "out-of-distribution calibration split (sealed-seed BH-, JDI- and agent-shaped families, many-option items)",
|
| 131 |
+
"orders": 1,
|
| 132 |
+
"readouts": "basal-serve --mode fast, bf16"
|
| 133 |
+
},
|
| 134 |
+
"certified_on": "the same split",
|
| 135 |
+
"evaluated_on": "development and test splits, leave-one-family-out and leave-one-language-out"
|
| 136 |
+
}
|
CALIBRATION.o2.json
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"prompt": 2,
|
| 3 |
+
"orders": 2,
|
| 4 |
+
"method": "temperature per question type and per option-count bucket (choice), by NLL, fitted on the out-of-distribution calibration split only; thresholds per type: the most permissive threshold whose accepted calibration decisions have a one-sided 95% Clopper-Pearson upper bound <= max_error; a type without one defers",
|
| 5 |
+
"temperature_per_prim": {
|
| 6 |
+
"choice": 1.2968395546510096,
|
| 7 |
+
"noul": 2.82842712474619,
|
| 8 |
+
"score": 2.2775772695133827
|
| 9 |
+
},
|
| 10 |
+
"temperature_per_bucket": {
|
| 11 |
+
"choice": {
|
| 12 |
+
"2-10": 1.731073122012286,
|
| 13 |
+
"11-26": 1.1224620483093728,
|
| 14 |
+
"27-255": 0.9576032806985735
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
+
"thresholds": {
|
| 18 |
+
"0.01": {
|
| 19 |
+
"confidence": null,
|
| 20 |
+
"method": "per type: the most permissive threshold whose accepted calibration decisions have a one-sided 95% Clopper-Pearson upper bound <= max_error; a type without one defers",
|
| 21 |
+
"per_type": {
|
| 22 |
+
"choice": {
|
| 23 |
+
"confidence": null,
|
| 24 |
+
"heldout_coverage": 0.0,
|
| 25 |
+
"heldout_error": null
|
| 26 |
+
},
|
| 27 |
+
"noul": {
|
| 28 |
+
"confidence": null,
|
| 29 |
+
"heldout_coverage": 0.0,
|
| 30 |
+
"heldout_error": null
|
| 31 |
+
},
|
| 32 |
+
"score": {
|
| 33 |
+
"confidence": null,
|
| 34 |
+
"heldout_coverage": 0.0,
|
| 35 |
+
"heldout_error": null
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"heldout_coverage": 0.0,
|
| 39 |
+
"heldout_error": null
|
| 40 |
+
},
|
| 41 |
+
"0.05": {
|
| 42 |
+
"confidence": null,
|
| 43 |
+
"method": "per type: the most permissive threshold whose accepted calibration decisions have a one-sided 95% Clopper-Pearson upper bound <= max_error; a type without one defers",
|
| 44 |
+
"per_type": {
|
| 45 |
+
"choice": {
|
| 46 |
+
"confidence": 0.9445740561766649,
|
| 47 |
+
"heldout_coverage": 0.3873168266801415,
|
| 48 |
+
"heldout_error": 0.023700804522722385
|
| 49 |
+
},
|
| 50 |
+
"noul": {
|
| 51 |
+
"confidence": 0.9555549119776258,
|
| 52 |
+
"heldout_coverage": 0.13509933774834437,
|
| 53 |
+
"heldout_error": 0.009803921568627416
|
| 54 |
+
},
|
| 55 |
+
"score": {
|
| 56 |
+
"confidence": 0.8910746290731381,
|
| 57 |
+
"heldout_coverage": 0.1618535930154466,
|
| 58 |
+
"heldout_error": 0.024896265560165998
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"heldout_coverage": 0.287778715796792,
|
| 62 |
+
"heldout_error": 0.022088006902502122
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"gates": {
|
| 66 |
+
"ece_lofo": {
|
| 67 |
+
"choice": {
|
| 68 |
+
"pooled": 0.022320540236599275,
|
| 69 |
+
"n": 11874,
|
| 70 |
+
"gate": 0.05,
|
| 71 |
+
"pass": true
|
| 72 |
+
},
|
| 73 |
+
"noul": {
|
| 74 |
+
"pooled": 0.0344665822105491,
|
| 75 |
+
"n": 5285,
|
| 76 |
+
"gate": 0.05,
|
| 77 |
+
"pass": true
|
| 78 |
+
},
|
| 79 |
+
"score": {
|
| 80 |
+
"pooled": 0.030798399068276784,
|
| 81 |
+
"n": 2978,
|
| 82 |
+
"gate": 0.05,
|
| 83 |
+
"pass": true
|
| 84 |
+
}
|
| 85 |
+
},
|
| 86 |
+
"ece_worst_fold": 0.09938740135848097,
|
| 87 |
+
"worst_fold": "agent",
|
| 88 |
+
"automated_at": {
|
| 89 |
+
"0.01": 0.0,
|
| 90 |
+
"0.05": 0.287778715796792
|
| 91 |
+
},
|
| 92 |
+
"automated_error": {
|
| 93 |
+
"0.01": null,
|
| 94 |
+
"0.05": 0.022088006902502122
|
| 95 |
+
},
|
| 96 |
+
"note": "held-out numbers: every evaluation row predicted by the fit without its family"
|
| 97 |
+
},
|
| 98 |
+
"test": {
|
| 99 |
+
"T": {
|
| 100 |
+
"choice": {
|
| 101 |
+
"acc": 0.7947616641401382,
|
| 102 |
+
"ece": 0.021102276315294953,
|
| 103 |
+
"n": 11874
|
| 104 |
+
},
|
| 105 |
+
"noul": {
|
| 106 |
+
"acc": 0.8302743614001892,
|
| 107 |
+
"ece": 0.034630485034101086,
|
| 108 |
+
"n": 5285
|
| 109 |
+
},
|
| 110 |
+
"score": {
|
| 111 |
+
"acc": 0.6124916051040967,
|
| 112 |
+
"ece": 0.030901334113014996,
|
| 113 |
+
"n": 2978
|
| 114 |
+
},
|
| 115 |
+
"all": {
|
| 116 |
+
"acc": 0.7771266822267467,
|
| 117 |
+
"ece": 0.01930530754099537,
|
| 118 |
+
"n": 20137
|
| 119 |
+
}
|
| 120 |
+
},
|
| 121 |
+
"note": "evaluation pool (development and test splits), full fit"
|
| 122 |
+
},
|
| 123 |
+
"n": {
|
| 124 |
+
"fit": 3560,
|
| 125 |
+
"many": 1500,
|
| 126 |
+
"eval": 20137
|
| 127 |
+
},
|
| 128 |
+
"engine": "fast",
|
| 129 |
+
"fitted_on": {
|
| 130 |
+
"split": "out-of-distribution calibration split (sealed-seed BH-, JDI- and agent-shaped families, many-option items)",
|
| 131 |
+
"orders": 2,
|
| 132 |
+
"readouts": "basal-serve --mode fast, bf16"
|
| 133 |
+
},
|
| 134 |
+
"certified_on": "the same split",
|
| 135 |
+
"evaluated_on": "development and test splits, leave-one-family-out and leave-one-language-out"
|
| 136 |
+
}
|
CALIBRATION.think.json
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"prompt": 2,
|
| 3 |
+
"orders": 1,
|
| 4 |
+
"method": "temperature per question type and per option-count bucket (choice), by NLL, fitted on the out-of-distribution calibration split only; thresholds per type: the most permissive threshold whose accepted calibration decisions have a one-sided 95% Clopper-Pearson upper bound <= max_error; a type without one defers",
|
| 5 |
+
"temperature_per_prim": {
|
| 6 |
+
"choice": 2.996614153753363,
|
| 7 |
+
"noul": 7.999999999999998,
|
| 8 |
+
"score": 4.756828460010884
|
| 9 |
+
},
|
| 10 |
+
"temperature_per_bucket": {
|
| 11 |
+
"choice": {
|
| 12 |
+
"2-10": 3.830413122794294,
|
| 13 |
+
"11-26": 2.747907294916178,
|
| 14 |
+
"27-255": 1.731073122012286
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
+
"thresholds": {
|
| 18 |
+
"0.01": {
|
| 19 |
+
"confidence": null,
|
| 20 |
+
"method": "per type: the most permissive threshold whose accepted calibration decisions have a one-sided 95% Clopper-Pearson upper bound <= max_error; a type without one defers",
|
| 21 |
+
"per_type": {
|
| 22 |
+
"choice": {
|
| 23 |
+
"confidence": null,
|
| 24 |
+
"heldout_coverage": 0.0,
|
| 25 |
+
"heldout_error": null
|
| 26 |
+
},
|
| 27 |
+
"noul": {
|
| 28 |
+
"confidence": null,
|
| 29 |
+
"heldout_coverage": 0.0,
|
| 30 |
+
"heldout_error": null
|
| 31 |
+
},
|
| 32 |
+
"score": {
|
| 33 |
+
"confidence": null,
|
| 34 |
+
"heldout_coverage": 0.0,
|
| 35 |
+
"heldout_error": null
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"heldout_coverage": 0.0,
|
| 39 |
+
"heldout_error": null
|
| 40 |
+
},
|
| 41 |
+
"0.05": {
|
| 42 |
+
"confidence": null,
|
| 43 |
+
"method": "per type: the most permissive threshold whose accepted calibration decisions have a one-sided 95% Clopper-Pearson upper bound <= max_error; a type without one defers",
|
| 44 |
+
"per_type": {
|
| 45 |
+
"choice": {
|
| 46 |
+
"confidence": null,
|
| 47 |
+
"heldout_coverage": 0.0,
|
| 48 |
+
"heldout_error": null
|
| 49 |
+
},
|
| 50 |
+
"noul": {
|
| 51 |
+
"confidence": null,
|
| 52 |
+
"heldout_coverage": 0.0,
|
| 53 |
+
"heldout_error": null
|
| 54 |
+
},
|
| 55 |
+
"score": {
|
| 56 |
+
"confidence": null,
|
| 57 |
+
"heldout_coverage": 0.0,
|
| 58 |
+
"heldout_error": null
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"heldout_coverage": 0.0,
|
| 62 |
+
"heldout_error": null
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"gates": {
|
| 66 |
+
"ece_lofo": {
|
| 67 |
+
"choice": {
|
| 68 |
+
"pooled": 0.0606221052989346,
|
| 69 |
+
"n": 7229,
|
| 70 |
+
"gate": 0.05,
|
| 71 |
+
"pass": false
|
| 72 |
+
},
|
| 73 |
+
"noul": {
|
| 74 |
+
"pooled": 0.05231366996904953,
|
| 75 |
+
"n": 3197,
|
| 76 |
+
"gate": 0.05,
|
| 77 |
+
"pass": false
|
| 78 |
+
},
|
| 79 |
+
"score": {
|
| 80 |
+
"pooled": 0.0740364665334774,
|
| 81 |
+
"n": 2978,
|
| 82 |
+
"gate": 0.05,
|
| 83 |
+
"pass": false
|
| 84 |
+
}
|
| 85 |
+
},
|
| 86 |
+
"ece_worst_fold": 0.12149008840247141,
|
| 87 |
+
"worst_fold": "agent",
|
| 88 |
+
"automated_at": {
|
| 89 |
+
"0.01": 0.0,
|
| 90 |
+
"0.05": 0.0
|
| 91 |
+
},
|
| 92 |
+
"automated_error": {
|
| 93 |
+
"0.01": null,
|
| 94 |
+
"0.05": null
|
| 95 |
+
},
|
| 96 |
+
"note": "held-out numbers: every evaluation row predicted by the fit without its family"
|
| 97 |
+
},
|
| 98 |
+
"test": {
|
| 99 |
+
"T": {
|
| 100 |
+
"choice": {
|
| 101 |
+
"acc": 0.6067229215659151,
|
| 102 |
+
"ece": 0.05329490346712401,
|
| 103 |
+
"n": 7229
|
| 104 |
+
},
|
| 105 |
+
"noul": {
|
| 106 |
+
"acc": 0.737566468564279,
|
| 107 |
+
"ece": 0.05231366996904953,
|
| 108 |
+
"n": 3197
|
| 109 |
+
},
|
| 110 |
+
"score": {
|
| 111 |
+
"acc": 0.5957018132975151,
|
| 112 |
+
"ece": 0.08010245549854482,
|
| 113 |
+
"n": 2978
|
| 114 |
+
},
|
| 115 |
+
"all": {
|
| 116 |
+
"acc": 0.6354819456878543,
|
| 117 |
+
"ece": 0.0323180305717361,
|
| 118 |
+
"n": 13404
|
| 119 |
+
}
|
| 120 |
+
},
|
| 121 |
+
"note": "evaluation pool (development and test splits), full fit"
|
| 122 |
+
},
|
| 123 |
+
"n": {
|
| 124 |
+
"fit": 2614,
|
| 125 |
+
"many": 885,
|
| 126 |
+
"eval": 13404
|
| 127 |
+
},
|
| 128 |
+
"engine": "think",
|
| 129 |
+
"fitted_on": {
|
| 130 |
+
"split": "out-of-distribution calibration split (sealed-seed BH-, JDI- and agent-shaped families, many-option items)",
|
| 131 |
+
"orders": 1
|
| 132 |
+
},
|
| 133 |
+
"certified_on": "the same split",
|
| 134 |
+
"evaluated_on": "development and test splits, leave-one-family-out and leave-one-language-out"
|
| 135 |
+
}
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
84a24109362342048505093fd06c8ccf213d5e10d5835542f6d599e297388d49 CALIBRATION.json
|
| 2 |
+
ede2d44cfdf9736b93e2e0d6bc7b68f27deff633bc3268361cb28cfefaecc2ab CALIBRATION.o2.json
|
| 3 |
+
8938f99af2d23223e197cfbd52e3941627934cf33dd132fd310d1a84db9b217d CALIBRATION.think.json
|
| 4 |
+
7604559595d509bf29defa40e8394a0b611d05ce3cd0fca0938a3ee6627a1493 basal.json
|
| 5 |
+
a805e50fed68938a076b07e2e602639611b50b1ced0e50f11eb92f1ba25be4dc chat_template.jinja
|
| 6 |
+
2ac96f2e6b9731382bee55320062498d06272542b7fd2faa4bef04065ba1e2c3 config.json
|
| 7 |
+
76594a7e29cc06ab1f219d175a8ee72e6a470053040a5156fb22226c1c6cfe9c generation_config.json
|
| 8 |
+
481d8ea4972379a611f46784196e407bee239a37c3981c6e29ff1aaaeb0f19c2 model.safetensors
|
| 9 |
+
7604559595d509bf29defa40e8394a0b611d05ce3cd0fca0938a3ee6627a1493 think/basal.json
|
| 10 |
+
a805e50fed68938a076b07e2e602639611b50b1ced0e50f11eb92f1ba25be4dc think/chat_template.jinja
|
| 11 |
+
2ac96f2e6b9731382bee55320062498d06272542b7fd2faa4bef04065ba1e2c3 think/config.json
|
| 12 |
+
76594a7e29cc06ab1f219d175a8ee72e6a470053040a5156fb22226c1c6cfe9c think/generation_config.json
|
| 13 |
+
1e295ab2bcc6e812bc9e22f710cd0a6fc4d91371eefffcb271d77cb6ad97c8a5 think/model.safetensors
|
| 14 |
+
20f059c5ba108cc6e4d59df55be30e73c30b86ff7aab314362bfa4eff1e21657 think/tokenizer.json
|
| 15 |
+
b90dd402080d2558a60b82033d71e3c1ef750e0811709ae166c0f7d3fa0693cd think/tokenizer_config.json
|
| 16 |
+
20f059c5ba108cc6e4d59df55be30e73c30b86ff7aab314362bfa4eff1e21657 tokenizer.json
|
| 17 |
+
b90dd402080d2558a60b82033d71e3c1ef750e0811709ae166c0f7d3fa0693cd tokenizer_config.json
|
basal.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "basal-2.0-4.5B",
|
| 3 |
+
"prompt": 2,
|
| 4 |
+
"readout": {
|
| 5 |
+
"kind": "code logits",
|
| 6 |
+
"codes": 255,
|
| 7 |
+
"prefill": "{\"answer\": \"",
|
| 8 |
+
"templates": "prompt format 2 (docs/FORMAT2.md of the basal engine)"
|
| 9 |
+
},
|
| 10 |
+
"calibration": "CALIBRATION.json (per-type and per-bucket temperatures, certified thresholds)",
|
| 11 |
+
"test_metrics": {
|
| 12 |
+
"acc": 0.8781542056074766,
|
| 13 |
+
"n_items": 8560
|
| 14 |
+
}
|
| 15 |
+
}
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{bos_token}}{% for message in messages %}{{'<|im_start|>' + message['role'] + '
|
| 2 |
+
' + message['content'] + '<|im_end|>' + '
|
| 3 |
+
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
|
| 4 |
+
' }}{% endif %}
|
config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": true,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 1,
|
| 8 |
+
"dtype": "bfloat16",
|
| 9 |
+
"eos_token_id": [
|
| 10 |
+
4,
|
| 11 |
+
2
|
| 12 |
+
],
|
| 13 |
+
"head_dim": 128,
|
| 14 |
+
"hidden_act": "silu",
|
| 15 |
+
"hidden_size": 2048,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 11008,
|
| 18 |
+
"max_position_embeddings": 32768,
|
| 19 |
+
"mlp_bias": true,
|
| 20 |
+
"model_type": "llama",
|
| 21 |
+
"num_attention_heads": 16,
|
| 22 |
+
"num_hidden_layers": 60,
|
| 23 |
+
"num_key_value_heads": 2,
|
| 24 |
+
"pad_token_id": 2,
|
| 25 |
+
"pretraining_tp": 1,
|
| 26 |
+
"rms_norm_eps": 1e-06,
|
| 27 |
+
"rope_parameters": {
|
| 28 |
+
"rope_theta": 1000000,
|
| 29 |
+
"rope_type": "default"
|
| 30 |
+
},
|
| 31 |
+
"tie_word_embeddings": false,
|
| 32 |
+
"transformers_version": "5.17.0",
|
| 33 |
+
"use_cache": false,
|
| 34 |
+
"vocab_size": 32000
|
| 35 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
4,
|
| 6 |
+
2
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 2,
|
| 9 |
+
"transformers_version": "5.17.0"
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:481d8ea4972379a611f46784196e407bee239a37c3981c6e29ff1aaaeb0f19c2
|
| 3 |
+
size 9514629496
|
think/basal.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "basal-2.0-4.5B",
|
| 3 |
+
"prompt": 2,
|
| 4 |
+
"readout": {
|
| 5 |
+
"kind": "code logits",
|
| 6 |
+
"codes": 255,
|
| 7 |
+
"prefill": "{\"answer\": \"",
|
| 8 |
+
"templates": "prompt format 2 (docs/FORMAT2.md of the basal engine)"
|
| 9 |
+
},
|
| 10 |
+
"calibration": "CALIBRATION.json (per-type and per-bucket temperatures, certified thresholds)",
|
| 11 |
+
"test_metrics": {
|
| 12 |
+
"acc": 0.8781542056074766,
|
| 13 |
+
"n_items": 8560
|
| 14 |
+
}
|
| 15 |
+
}
|
think/chat_template.jinja
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{bos_token}}{% for message in messages %}{{'<|im_start|>' + message['role'] + '
|
| 2 |
+
' + message['content'] + '<|im_end|>' + '
|
| 3 |
+
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
|
| 4 |
+
' }}{% endif %}
|
think/config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": true,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 1,
|
| 8 |
+
"dtype": "bfloat16",
|
| 9 |
+
"eos_token_id": [
|
| 10 |
+
4,
|
| 11 |
+
2
|
| 12 |
+
],
|
| 13 |
+
"head_dim": 128,
|
| 14 |
+
"hidden_act": "silu",
|
| 15 |
+
"hidden_size": 2048,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 11008,
|
| 18 |
+
"max_position_embeddings": 32768,
|
| 19 |
+
"mlp_bias": true,
|
| 20 |
+
"model_type": "llama",
|
| 21 |
+
"num_attention_heads": 16,
|
| 22 |
+
"num_hidden_layers": 60,
|
| 23 |
+
"num_key_value_heads": 2,
|
| 24 |
+
"pad_token_id": 2,
|
| 25 |
+
"pretraining_tp": 1,
|
| 26 |
+
"rms_norm_eps": 1e-06,
|
| 27 |
+
"rope_parameters": {
|
| 28 |
+
"rope_theta": 1000000,
|
| 29 |
+
"rope_type": "default"
|
| 30 |
+
},
|
| 31 |
+
"tie_word_embeddings": false,
|
| 32 |
+
"transformers_version": "5.17.0",
|
| 33 |
+
"use_cache": false,
|
| 34 |
+
"vocab_size": 32000
|
| 35 |
+
}
|
think/generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
4,
|
| 6 |
+
2
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 2,
|
| 9 |
+
"transformers_version": "5.17.0"
|
| 10 |
+
}
|
think/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e295ab2bcc6e812bc9e22f710cd0a6fc4d91371eefffcb271d77cb6ad97c8a5
|
| 3 |
+
size 9514629496
|
think/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
think/tokenizer_config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": null,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|im_end|>",
|
| 7 |
+
"extra_special_tokens": [
|
| 8 |
+
"<|im_start|>",
|
| 9 |
+
"<|im_end|>",
|
| 10 |
+
"<tool_call>",
|
| 11 |
+
"</tool_call>"
|
| 12 |
+
],
|
| 13 |
+
"is_local": true,
|
| 14 |
+
"local_files_only": false,
|
| 15 |
+
"max_length": null,
|
| 16 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 17 |
+
"pad_to_multiple_of": null,
|
| 18 |
+
"pad_token": "</s>",
|
| 19 |
+
"pad_token_type_id": 0,
|
| 20 |
+
"padding_side": "left",
|
| 21 |
+
"sp_model_kwargs": {},
|
| 22 |
+
"spaces_between_special_tokens": false,
|
| 23 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 24 |
+
"truncation_side": "left",
|
| 25 |
+
"unk_token": "<unk>",
|
| 26 |
+
"use_default_system_prompt": false
|
| 27 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": null,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|im_end|>",
|
| 7 |
+
"extra_special_tokens": [
|
| 8 |
+
"<|im_start|>",
|
| 9 |
+
"<|im_end|>",
|
| 10 |
+
"<tool_call>",
|
| 11 |
+
"</tool_call>"
|
| 12 |
+
],
|
| 13 |
+
"is_local": true,
|
| 14 |
+
"local_files_only": false,
|
| 15 |
+
"max_length": null,
|
| 16 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 17 |
+
"pad_to_multiple_of": null,
|
| 18 |
+
"pad_token": "</s>",
|
| 19 |
+
"pad_token_type_id": 0,
|
| 20 |
+
"padding_side": "left",
|
| 21 |
+
"sp_model_kwargs": {},
|
| 22 |
+
"spaces_between_special_tokens": false,
|
| 23 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 24 |
+
"truncation_side": "left",
|
| 25 |
+
"unk_token": "<unk>",
|
| 26 |
+
"use_default_system_prompt": false
|
| 27 |
+
}
|