初始化项目,由ModelHub XC社区提供模型
Model: absltnull/predBor-v0.5 Source: Original Platform
This commit is contained in:
35
.gitattributes
vendored
Normal file
35
.gitattributes
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.model filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||||
21
LICENSE.md
Normal file
21
LICENSE.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2026 Tarik Dedić
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
113
README.md
Normal file
113
README.md
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
---
|
||||||
|
tags:
|
||||||
|
- llm
|
||||||
|
- language-model
|
||||||
|
- causal-lm
|
||||||
|
- bosnian
|
||||||
|
- croatian
|
||||||
|
- serbian
|
||||||
|
- bcs
|
||||||
|
- balkan-languages
|
||||||
|
- llama
|
||||||
|
- 779m
|
||||||
|
- base-model
|
||||||
|
- undertrained
|
||||||
|
- multilingual
|
||||||
|
language:
|
||||||
|
- bs
|
||||||
|
- hr
|
||||||
|
- sr
|
||||||
|
- en
|
||||||
|
license: mit
|
||||||
|
base_model: none
|
||||||
|
pipeline_tag: text-generation
|
||||||
|
---
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## predBor-v0.5
|
||||||
|
|
||||||
|
A preview of predBor, a small language model built from the ground up to natively understand Bosnian/Croatian/Serbian while supporting English.
|
||||||
|
|
||||||
|
**NOTE THAT THIS IS A BASE LANGUAGE MODEL. IT DOES NOT POSSESS THE ABILITY TO CHAT OR ANSWER QUESTIONS, ONLY CONTINUE TEXT.**
|
||||||
|
|
||||||
|
### Architecture Details
|
||||||
|
- **Type:** Causal Language Model
|
||||||
|
- **Parameters:** 779M
|
||||||
|
- **Architecture:** LLaMA
|
||||||
|
- **Context window:** 4096 tokens
|
||||||
|
- **Tokenizer:** Bor-v2
|
||||||
|
- **Dataset:** Bor-CORPUS-22B
|
||||||
|
|
||||||
|
This repo contains an undertrained checkpoint of the predBor language model which has only seen 11B tokens of data, yet still shows promising performance on all four supported languages.
|
||||||
|
|
||||||
|
### Emerging Capabilities
|
||||||
|
Even undertrained, predBor is starting to display some emerging skills in different fields, only serving to show the quality of its data and architecture. Notable achievements:
|
||||||
|
|
||||||
|
- **Translation:** The model has developed semantic mapping between BCS and English, being able to translate words (and sometimes phrases) with the right prompt.
|
||||||
|
- **Fact memorization:** The model has seen enough data to show surprising amounts of general world knowledge, such as viable medical advice, historical facts, recipes with logically correct steps and ingredients, and the capital city to every country there is... for some reason.
|
||||||
|
- **Question answering:** When prompted with a question and the beginning of an answer (e.g., "The meaning of life is"), it delivers a somewhat viable answer depending on the topic. The model's current state impacts its overall intelligence, meaning some answers will be hallucinated. This does not represent the final state of the project.
|
||||||
|
- **And more.** Feel free to download and test the model yourself.
|
||||||
|
|
||||||
|
## English Benchmark Comparison (0-shot lm-eval)
|
||||||
|
|
||||||
|
**predBor-v0.5** (from-scratch, BCS-primary, early v0.5 checkpoint, 11B tokens)
|
||||||
|
vs
|
||||||
|
**gpt2-orao** (GPT-2 Large, finished Serbian model)
|
||||||
|
|
||||||
|
| Task | predBor-v0.5 | gpt2-orao |
|
||||||
|
|-------------------|--------------|-----------|
|
||||||
|
| HellaSwag acc_norm| **34.5%** | 26.8% |
|
||||||
|
| ARC-Challenge acc_norm | 23.8% | **25.9%** |
|
||||||
|
|
||||||
|
*Note: predBor evaluated on RTX 2050, full results JSONs attached.*
|
||||||
|
|
||||||
|
### How to run
|
||||||
|
|
||||||
|
#### Hugging Face Transformers (for quick testing)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install transformers torch accelerate
|
||||||
|
```
|
||||||
|
|
||||||
|
Then,
|
||||||
|
|
||||||
|
```python
|
||||||
|
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||||
|
import torch
|
||||||
|
|
||||||
|
model_name = "absltnull/predBor-v0.5"
|
||||||
|
|
||||||
|
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
||||||
|
model = AutoModelForCausalLM.from_pretrained(
|
||||||
|
model_name,
|
||||||
|
torch_dtype=torch.bfloat16,
|
||||||
|
device_map="auto",
|
||||||
|
trust_remote_code=True
|
||||||
|
)
|
||||||
|
|
||||||
|
prompt = "Glavni grad Bosne i Hercegovine je"
|
||||||
|
|
||||||
|
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
||||||
|
|
||||||
|
output = model.generate(
|
||||||
|
**inputs,
|
||||||
|
max_new_tokens=256,
|
||||||
|
temperature=0.7,
|
||||||
|
top_p=0.9,
|
||||||
|
repetition_penalty=1.1,
|
||||||
|
do_sample=True
|
||||||
|
)
|
||||||
|
|
||||||
|
print(tokenizer.decode(output[0], skip_special_tokens=True))
|
||||||
|
```
|
||||||
|
|
||||||
|
**System requirements**
|
||||||
|
- 3.2 GB storage (full model)
|
||||||
|
- 2+ GB VRAM/RAM for full bf16/fp16
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
The model is deliberately released in this raw base state so the community can see the real quality of the training data before any continued pretraining, post-training or alignment is applied.
|
||||||
|
|
||||||
|
Feel free to fine-tune. The finished version of predBor will be out soon.
|
||||||
32
config.json
Normal file
32
config.json
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"architectures": [
|
||||||
|
"LlamaForCausalLM"
|
||||||
|
],
|
||||||
|
"attention_bias": false,
|
||||||
|
"attention_dropout": 0.0,
|
||||||
|
"bos_token_id": 1,
|
||||||
|
"dtype": "float32",
|
||||||
|
"eos_token_id": 3,
|
||||||
|
"head_dim": 96,
|
||||||
|
"hidden_act": "silu",
|
||||||
|
"hidden_size": 1536,
|
||||||
|
"initializer_range": 0.02,
|
||||||
|
"intermediate_size": 4096,
|
||||||
|
"max_position_embeddings": 4096,
|
||||||
|
"mlp_bias": false,
|
||||||
|
"model_type": "llama",
|
||||||
|
"num_attention_heads": 16,
|
||||||
|
"num_hidden_layers": 24,
|
||||||
|
"num_key_value_heads": 16,
|
||||||
|
"pad_token_id": 3,
|
||||||
|
"pretraining_tp": 1,
|
||||||
|
"rms_norm_eps": 1e-05,
|
||||||
|
"rope_parameters": {
|
||||||
|
"rope_theta": 10000.0,
|
||||||
|
"rope_type": "default"
|
||||||
|
},
|
||||||
|
"tie_word_embeddings": true,
|
||||||
|
"transformers_version": "5.6.2",
|
||||||
|
"use_cache": false,
|
||||||
|
"vocab_size": 65000
|
||||||
|
}
|
||||||
10
generation_config.json
Normal file
10
generation_config.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"_from_model_config": true,
|
||||||
|
"bos_token_id": 1,
|
||||||
|
"eos_token_id": 3,
|
||||||
|
"output_attentions": false,
|
||||||
|
"output_hidden_states": false,
|
||||||
|
"pad_token_id": 3,
|
||||||
|
"transformers_version": "5.6.2",
|
||||||
|
"use_cache": true
|
||||||
|
}
|
||||||
3
model.safetensors
Normal file
3
model.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8fe59146b6b09d8355148bf5485ccc942947064ecb3100d9f3e5828e34c5248b
|
||||||
|
size 3117595024
|
||||||
3
optimizer.pt
Normal file
3
optimizer.pt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2a53c3ada42f5fc7c1256e680e0f4453db70bfcca1b3bb2e03e8e822524fd9e8
|
||||||
|
size 792133451
|
||||||
BIN
predbor-logo.png
Normal file
BIN
predbor-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
202
results_gpt2-orao.json
Normal file
202
results_gpt2-orao.json
Normal file
@@ -0,0 +1,202 @@
|
|||||||
|
{
|
||||||
|
"results": {
|
||||||
|
"hellaswag": {
|
||||||
|
"name": "hellaswag",
|
||||||
|
"alias": "hellaswag",
|
||||||
|
"sample_len": 10042,
|
||||||
|
"acc,none": 0.26926906990639315,
|
||||||
|
"acc_stderr,none": 0.00442673471880892,
|
||||||
|
"acc_norm,none": 0.2680740888269269,
|
||||||
|
"acc_norm_stderr,none": 0.004420511215131016
|
||||||
|
},
|
||||||
|
"arc_challenge": {
|
||||||
|
"name": "arc_challenge",
|
||||||
|
"alias": "arc_challenge",
|
||||||
|
"sample_len": 1172,
|
||||||
|
"acc,none": 0.1945392491467577,
|
||||||
|
"acc_stderr,none": 0.011567709174648728,
|
||||||
|
"acc_norm,none": 0.2593856655290102,
|
||||||
|
"acc_norm_stderr,none": 0.012808273573927099
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"group_subtasks": {},
|
||||||
|
"configs": {
|
||||||
|
"arc_challenge": {
|
||||||
|
"task": "arc_challenge",
|
||||||
|
"dataset_path": "allenai/ai2_arc",
|
||||||
|
"dataset_name": "ARC-Challenge",
|
||||||
|
"training_split": "train",
|
||||||
|
"validation_split": "validation",
|
||||||
|
"test_split": "test",
|
||||||
|
"doc_to_text": "Question: {{question}}\nAnswer:",
|
||||||
|
"doc_to_target": "{{choices.label.index(answerKey)}}",
|
||||||
|
"unsafe_code": false,
|
||||||
|
"doc_to_choice": "{{choices.text}}",
|
||||||
|
"description": "",
|
||||||
|
"target_delimiter": " ",
|
||||||
|
"fewshot_delimiter": "\n\n",
|
||||||
|
"fewshot_config": {
|
||||||
|
"sampler": "default",
|
||||||
|
"split": null,
|
||||||
|
"process_docs": null,
|
||||||
|
"fewshot_indices": null,
|
||||||
|
"samples": null,
|
||||||
|
"doc_to_text": "Question: {{question}}\nAnswer:",
|
||||||
|
"doc_to_choice": "{{choices.text}}",
|
||||||
|
"doc_to_target": "{{choices.label.index(answerKey)}}",
|
||||||
|
"gen_prefix": null,
|
||||||
|
"fewshot_delimiter": "\n\n",
|
||||||
|
"target_delimiter": " "
|
||||||
|
},
|
||||||
|
"num_fewshot": 0,
|
||||||
|
"metric_list": [
|
||||||
|
{
|
||||||
|
"metric": "acc",
|
||||||
|
"aggregation": "mean",
|
||||||
|
"higher_is_better": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"metric": "acc_norm",
|
||||||
|
"aggregation": "mean",
|
||||||
|
"higher_is_better": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"output_type": "multiple_choice",
|
||||||
|
"repeats": 1,
|
||||||
|
"should_decontaminate": true,
|
||||||
|
"doc_to_decontamination_query": "Question: {{question}}\nAnswer:",
|
||||||
|
"metadata": {
|
||||||
|
"version": 1.0,
|
||||||
|
"pretrained": "jerteh/gpt2-orao",
|
||||||
|
"config_source": "C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\lm_eval\\tasks\\arc\\arc_challenge.yaml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hellaswag": {
|
||||||
|
"task": "hellaswag",
|
||||||
|
"dataset_path": "Rowan/hellaswag",
|
||||||
|
"training_split": "train",
|
||||||
|
"validation_split": "validation",
|
||||||
|
"process_docs": "def process_docs(dataset: datasets.Dataset) -> datasets.Dataset:\n def _process_doc(doc):\n ctx = doc[\"ctx_a\"] + \" \" + doc[\"ctx_b\"].capitalize()\n out_doc = {\n \"query\": preprocess(doc[\"activity_label\"] + \": \" + ctx),\n \"choices\": [preprocess(ending) for ending in doc[\"endings\"]],\n \"gold\": int(doc[\"label\"]),\n }\n return out_doc\n\n return dataset.map(_process_doc)\n",
|
||||||
|
"doc_to_text": "{{query}}",
|
||||||
|
"doc_to_target": "{{label}}",
|
||||||
|
"unsafe_code": false,
|
||||||
|
"doc_to_choice": "choices",
|
||||||
|
"description": "",
|
||||||
|
"target_delimiter": " ",
|
||||||
|
"fewshot_delimiter": "\n\n",
|
||||||
|
"fewshot_config": {
|
||||||
|
"sampler": "default",
|
||||||
|
"split": null,
|
||||||
|
"process_docs": "<function process_docs at 0x000001BBC6DBF760>",
|
||||||
|
"fewshot_indices": null,
|
||||||
|
"samples": null,
|
||||||
|
"doc_to_text": "{{query}}",
|
||||||
|
"doc_to_choice": "choices",
|
||||||
|
"doc_to_target": "{{label}}",
|
||||||
|
"gen_prefix": null,
|
||||||
|
"fewshot_delimiter": "\n\n",
|
||||||
|
"target_delimiter": " "
|
||||||
|
},
|
||||||
|
"num_fewshot": 0,
|
||||||
|
"metric_list": [
|
||||||
|
{
|
||||||
|
"metric": "acc",
|
||||||
|
"aggregation": "mean",
|
||||||
|
"higher_is_better": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"metric": "acc_norm",
|
||||||
|
"aggregation": "mean",
|
||||||
|
"higher_is_better": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"output_type": "multiple_choice",
|
||||||
|
"repeats": 1,
|
||||||
|
"should_decontaminate": false,
|
||||||
|
"metadata": {
|
||||||
|
"version": 1.0,
|
||||||
|
"pretrained": "jerteh/gpt2-orao",
|
||||||
|
"config_source": "C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\lm_eval\\tasks\\hellaswag\\hellaswag.yaml"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"versions": {
|
||||||
|
"arc_challenge": 1.0,
|
||||||
|
"hellaswag": 1.0
|
||||||
|
},
|
||||||
|
"n-shot": {
|
||||||
|
"arc_challenge": 0,
|
||||||
|
"hellaswag": 0
|
||||||
|
},
|
||||||
|
"higher_is_better": {
|
||||||
|
"arc_challenge": {
|
||||||
|
"acc": true,
|
||||||
|
"acc_norm": true
|
||||||
|
},
|
||||||
|
"hellaswag": {
|
||||||
|
"acc": true,
|
||||||
|
"acc_norm": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"n-samples": {
|
||||||
|
"hellaswag": {
|
||||||
|
"original": 10042,
|
||||||
|
"effective": 10042
|
||||||
|
},
|
||||||
|
"arc_challenge": {
|
||||||
|
"original": 1172,
|
||||||
|
"effective": 1172
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"model": "hf",
|
||||||
|
"model_args": {
|
||||||
|
"pretrained": "jerteh/gpt2-orao"
|
||||||
|
},
|
||||||
|
"model_num_parameters": 772615680,
|
||||||
|
"model_dtype": "torch.float32",
|
||||||
|
"model_revision": "main",
|
||||||
|
"model_sha": "a7dfec6b4290bcb48e579e13e39d20d0ea574449",
|
||||||
|
"batch_size": "4",
|
||||||
|
"batch_sizes": [],
|
||||||
|
"device": "cuda:0",
|
||||||
|
"use_cache": null,
|
||||||
|
"limit": null,
|
||||||
|
"bootstrap_iters": 100000,
|
||||||
|
"gen_kwargs": {},
|
||||||
|
"random_seed": 0,
|
||||||
|
"numpy_seed": 1234,
|
||||||
|
"torch_seed": 1234,
|
||||||
|
"fewshot_seed": 1234
|
||||||
|
},
|
||||||
|
"git_hash": null,
|
||||||
|
"date": 1782051514.3003025,
|
||||||
|
"pretty_env_info": "PyTorch version: 2.11.0+cu130\nIs debug build: False\nCUDA used to build PyTorch: 13.0\nROCM used to build PyTorch: N/A\n\nOS: Microsoft Windows 11 Pro (10.0.26200 64-bit)\nGCC version: Could not collect\nClang version: Could not collect\nCMake version: Could not collect\nLibc version: N/A\n\nPython version: 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] (64-bit runtime)\nPython platform: Windows-10-10.0.26200-SP0\nIs CUDA available: True\nCUDA runtime version: 13.0.48\r\nCUDA_MODULE_LOADING set to: \nGPU models and configuration: GPU 0: NVIDIA GeForce RTX 2050\nNvidia driver version: 591.86\ncuDNN version: Could not collect\nIs XPU available: False\nHIP runtime version: N/A\nMIOpen runtime version: N/A\nIs XNNPACK available: True\nCaching allocator config: N/A\n\nCPU:\nName: 12th Gen Intel(R) Core(TM) i5-12450H\nManufacturer: GenuineIntel\nFamily: 205\nArchitecture: 9\nProcessorType: 3\nDeviceID: CPU0\nCurrentClockSpeed: 2000\nMaxClockSpeed: 2000\nL2CacheSize: 7168\nL2CacheSpeed: None\nRevision: None\n\nVersions of relevant libraries:\n[pip3] flash_attn==2.8.3+cu130torch2.11\n[pip3] numpy==2.2.6\n[pip3] optree==0.18.0\n[pip3] rotary-embedding-torch==0.6.4\n[pip3] torch==2.11.0+cu130\n[pip3] torchaudio==2.11.0+cu130\n[pip3] torchcrepe==0.0.20\n[pip3] torchgen==0.0.1\n[pip3] torchvision==0.26.0+cu130\n[conda] Could not collect",
|
||||||
|
"transformers_version": "5.12.0",
|
||||||
|
"lm_eval_version": "0.4.12",
|
||||||
|
"upper_git_hash": null,
|
||||||
|
"tokenizer_pad_token": [
|
||||||
|
"<|endoftext|>",
|
||||||
|
"49152"
|
||||||
|
],
|
||||||
|
"tokenizer_eos_token": [
|
||||||
|
"<|endoftext|>",
|
||||||
|
"49152"
|
||||||
|
],
|
||||||
|
"tokenizer_bos_token": [
|
||||||
|
"<|endoftext|>",
|
||||||
|
"49152"
|
||||||
|
],
|
||||||
|
"eot_token_id": 49152,
|
||||||
|
"max_length": 1024,
|
||||||
|
"task_hashes": {},
|
||||||
|
"model_source": "hf",
|
||||||
|
"model_name": "jerteh/gpt2-orao",
|
||||||
|
"model_name_sanitized": "jerteh__gpt2-orao",
|
||||||
|
"system_instruction": null,
|
||||||
|
"system_instruction_sha": null,
|
||||||
|
"fewshot_as_multiturn": null,
|
||||||
|
"chat_template": null,
|
||||||
|
"chat_template_sha": null,
|
||||||
|
"total_evaluation_time_seconds": "4028.2001800000007"
|
||||||
|
}
|
||||||
202
results_predBor.json
Normal file
202
results_predBor.json
Normal file
@@ -0,0 +1,202 @@
|
|||||||
|
{
|
||||||
|
"results": {
|
||||||
|
"hellaswag": {
|
||||||
|
"name": "hellaswag",
|
||||||
|
"alias": "hellaswag",
|
||||||
|
"sample_len": 10042,
|
||||||
|
"acc,none": 0.3040231029675364,
|
||||||
|
"acc_stderr,none": 0.00459052357205796,
|
||||||
|
"acc_norm,none": 0.34534953196574386,
|
||||||
|
"acc_norm_stderr,none": 0.004745103543901273
|
||||||
|
},
|
||||||
|
"arc_challenge": {
|
||||||
|
"name": "arc_challenge",
|
||||||
|
"alias": "arc_challenge",
|
||||||
|
"sample_len": 1172,
|
||||||
|
"acc,none": 0.18430034129692832,
|
||||||
|
"acc_stderr,none": 0.011330517933037408,
|
||||||
|
"acc_norm,none": 0.2380546075085324,
|
||||||
|
"acc_norm_stderr,none": 0.012445770028026208
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"group_subtasks": {},
|
||||||
|
"configs": {
|
||||||
|
"arc_challenge": {
|
||||||
|
"task": "arc_challenge",
|
||||||
|
"dataset_path": "allenai/ai2_arc",
|
||||||
|
"dataset_name": "ARC-Challenge",
|
||||||
|
"training_split": "train",
|
||||||
|
"validation_split": "validation",
|
||||||
|
"test_split": "test",
|
||||||
|
"doc_to_text": "Question: {{question}}\nAnswer:",
|
||||||
|
"doc_to_target": "{{choices.label.index(answerKey)}}",
|
||||||
|
"unsafe_code": false,
|
||||||
|
"doc_to_choice": "{{choices.text}}",
|
||||||
|
"description": "",
|
||||||
|
"target_delimiter": " ",
|
||||||
|
"fewshot_delimiter": "\n\n",
|
||||||
|
"fewshot_config": {
|
||||||
|
"sampler": "default",
|
||||||
|
"split": null,
|
||||||
|
"process_docs": null,
|
||||||
|
"fewshot_indices": null,
|
||||||
|
"samples": null,
|
||||||
|
"doc_to_text": "Question: {{question}}\nAnswer:",
|
||||||
|
"doc_to_choice": "{{choices.text}}",
|
||||||
|
"doc_to_target": "{{choices.label.index(answerKey)}}",
|
||||||
|
"gen_prefix": null,
|
||||||
|
"fewshot_delimiter": "\n\n",
|
||||||
|
"target_delimiter": " "
|
||||||
|
},
|
||||||
|
"num_fewshot": 0,
|
||||||
|
"metric_list": [
|
||||||
|
{
|
||||||
|
"metric": "acc",
|
||||||
|
"aggregation": "mean",
|
||||||
|
"higher_is_better": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"metric": "acc_norm",
|
||||||
|
"aggregation": "mean",
|
||||||
|
"higher_is_better": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"output_type": "multiple_choice",
|
||||||
|
"repeats": 1,
|
||||||
|
"should_decontaminate": true,
|
||||||
|
"doc_to_decontamination_query": "Question: {{question}}\nAnswer:",
|
||||||
|
"metadata": {
|
||||||
|
"version": 1.0,
|
||||||
|
"pretrained": "absltnull/predBor-v0.5",
|
||||||
|
"config_source": "C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\lm_eval\\tasks\\arc\\arc_challenge.yaml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hellaswag": {
|
||||||
|
"task": "hellaswag",
|
||||||
|
"dataset_path": "Rowan/hellaswag",
|
||||||
|
"training_split": "train",
|
||||||
|
"validation_split": "validation",
|
||||||
|
"process_docs": "def process_docs(dataset: datasets.Dataset) -> datasets.Dataset:\n def _process_doc(doc):\n ctx = doc[\"ctx_a\"] + \" \" + doc[\"ctx_b\"].capitalize()\n out_doc = {\n \"query\": preprocess(doc[\"activity_label\"] + \": \" + ctx),\n \"choices\": [preprocess(ending) for ending in doc[\"endings\"]],\n \"gold\": int(doc[\"label\"]),\n }\n return out_doc\n\n return dataset.map(_process_doc)\n",
|
||||||
|
"doc_to_text": "{{query}}",
|
||||||
|
"doc_to_target": "{{label}}",
|
||||||
|
"unsafe_code": false,
|
||||||
|
"doc_to_choice": "choices",
|
||||||
|
"description": "",
|
||||||
|
"target_delimiter": " ",
|
||||||
|
"fewshot_delimiter": "\n\n",
|
||||||
|
"fewshot_config": {
|
||||||
|
"sampler": "default",
|
||||||
|
"split": null,
|
||||||
|
"process_docs": "<function process_docs at 0x00000137B2E4BBE0>",
|
||||||
|
"fewshot_indices": null,
|
||||||
|
"samples": null,
|
||||||
|
"doc_to_text": "{{query}}",
|
||||||
|
"doc_to_choice": "choices",
|
||||||
|
"doc_to_target": "{{label}}",
|
||||||
|
"gen_prefix": null,
|
||||||
|
"fewshot_delimiter": "\n\n",
|
||||||
|
"target_delimiter": " "
|
||||||
|
},
|
||||||
|
"num_fewshot": 0,
|
||||||
|
"metric_list": [
|
||||||
|
{
|
||||||
|
"metric": "acc",
|
||||||
|
"aggregation": "mean",
|
||||||
|
"higher_is_better": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"metric": "acc_norm",
|
||||||
|
"aggregation": "mean",
|
||||||
|
"higher_is_better": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"output_type": "multiple_choice",
|
||||||
|
"repeats": 1,
|
||||||
|
"should_decontaminate": false,
|
||||||
|
"metadata": {
|
||||||
|
"version": 1.0,
|
||||||
|
"pretrained": "absltnull/predBor-v0.5",
|
||||||
|
"config_source": "C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\lm_eval\\tasks\\hellaswag\\hellaswag.yaml"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"versions": {
|
||||||
|
"arc_challenge": 1.0,
|
||||||
|
"hellaswag": 1.0
|
||||||
|
},
|
||||||
|
"n-shot": {
|
||||||
|
"arc_challenge": 0,
|
||||||
|
"hellaswag": 0
|
||||||
|
},
|
||||||
|
"higher_is_better": {
|
||||||
|
"arc_challenge": {
|
||||||
|
"acc": true,
|
||||||
|
"acc_norm": true
|
||||||
|
},
|
||||||
|
"hellaswag": {
|
||||||
|
"acc": true,
|
||||||
|
"acc_norm": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"n-samples": {
|
||||||
|
"hellaswag": {
|
||||||
|
"original": 10042,
|
||||||
|
"effective": 10042
|
||||||
|
},
|
||||||
|
"arc_challenge": {
|
||||||
|
"original": 1172,
|
||||||
|
"effective": 1172
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"model": "hf",
|
||||||
|
"model_args": {
|
||||||
|
"pretrained": "absltnull/predBor-v0.5"
|
||||||
|
},
|
||||||
|
"model_num_parameters": 779392512,
|
||||||
|
"model_dtype": "torch.float32",
|
||||||
|
"model_revision": "main",
|
||||||
|
"model_sha": "d2f6884ce777628ec6e05aba33b2154c0fc01890",
|
||||||
|
"batch_size": "4",
|
||||||
|
"batch_sizes": [],
|
||||||
|
"device": "cuda:0",
|
||||||
|
"use_cache": null,
|
||||||
|
"limit": null,
|
||||||
|
"bootstrap_iters": 100000,
|
||||||
|
"gen_kwargs": {},
|
||||||
|
"random_seed": 0,
|
||||||
|
"numpy_seed": 1234,
|
||||||
|
"torch_seed": 1234,
|
||||||
|
"fewshot_seed": 1234
|
||||||
|
},
|
||||||
|
"git_hash": null,
|
||||||
|
"date": 1782048025.6308908,
|
||||||
|
"pretty_env_info": "PyTorch version: 2.11.0+cu130\nIs debug build: False\nCUDA used to build PyTorch: 13.0\nROCM used to build PyTorch: N/A\n\nOS: Microsoft Windows 11 Pro (10.0.26200 64-bit)\nGCC version: Could not collect\nClang version: Could not collect\nCMake version: Could not collect\nLibc version: N/A\n\nPython version: 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] (64-bit runtime)\nPython platform: Windows-10-10.0.26200-SP0\nIs CUDA available: True\nCUDA runtime version: 13.0.48\r\nCUDA_MODULE_LOADING set to: \nGPU models and configuration: GPU 0: NVIDIA GeForce RTX 2050\nNvidia driver version: 591.86\ncuDNN version: Could not collect\nIs XPU available: False\nHIP runtime version: N/A\nMIOpen runtime version: N/A\nIs XNNPACK available: True\nCaching allocator config: N/A\n\nCPU:\nName: 12th Gen Intel(R) Core(TM) i5-12450H\nManufacturer: GenuineIntel\nFamily: 205\nArchitecture: 9\nProcessorType: 3\nDeviceID: CPU0\nCurrentClockSpeed: 2000\nMaxClockSpeed: 2000\nL2CacheSize: 7168\nL2CacheSpeed: None\nRevision: None\n\nVersions of relevant libraries:\n[pip3] flash_attn==2.8.3+cu130torch2.11\n[pip3] numpy==2.2.6\n[pip3] optree==0.18.0\n[pip3] rotary-embedding-torch==0.6.4\n[pip3] torch==2.11.0+cu130\n[pip3] torchaudio==2.11.0+cu130\n[pip3] torchcrepe==0.0.20\n[pip3] torchgen==0.0.1\n[pip3] torchvision==0.26.0+cu130\n[conda] Could not collect",
|
||||||
|
"transformers_version": "5.12.0",
|
||||||
|
"lm_eval_version": "0.4.12",
|
||||||
|
"upper_git_hash": null,
|
||||||
|
"tokenizer_pad_token": [
|
||||||
|
"<unk>",
|
||||||
|
"0"
|
||||||
|
],
|
||||||
|
"tokenizer_eos_token": [
|
||||||
|
"</s>",
|
||||||
|
"2"
|
||||||
|
],
|
||||||
|
"tokenizer_bos_token": [
|
||||||
|
"<s>",
|
||||||
|
"1"
|
||||||
|
],
|
||||||
|
"eot_token_id": 2,
|
||||||
|
"max_length": 4096,
|
||||||
|
"task_hashes": {},
|
||||||
|
"model_source": "hf",
|
||||||
|
"model_name": "absltnull/predBor-v0.5",
|
||||||
|
"model_name_sanitized": "absltnull__predBor-v0.5",
|
||||||
|
"system_instruction": null,
|
||||||
|
"system_instruction_sha": null,
|
||||||
|
"fewshot_as_multiturn": null,
|
||||||
|
"chat_template": null,
|
||||||
|
"chat_template_sha": null,
|
||||||
|
"total_evaluation_time_seconds": "2531.7302202"
|
||||||
|
}
|
||||||
3
rng_state.pth
Normal file
3
rng_state.pth
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:93d8bb2aa07f82547f623b18dbff71b8098d135161e4cfc79e3d9f7d04080432
|
||||||
|
size 14645
|
||||||
3
scheduler.pt
Normal file
3
scheduler.pt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:673be6a7c33be57a826a89dc4844cc1013baa23001e2b017ddb416838b3e03f7
|
||||||
|
size 1465
|
||||||
3
tokenizer.model
Normal file
3
tokenizer.model
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:cf008fac88fe2eaa753a83f3f085fc14e58858a17e06fe004464b8fbb1eb6453
|
||||||
|
size 1182445
|
||||||
65000
tokenizer.vocab
Normal file
65000
tokenizer.vocab
Normal file
File diff suppressed because it is too large
Load Diff
158045
trainer_state.json
Normal file
158045
trainer_state.json
Normal file
File diff suppressed because it is too large
Load Diff
3
training_args.bin
Normal file
3
training_args.bin
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8b5a6077992170741f8a93207f48517dd43600d0326ded6859667b30280b50b4
|
||||||
|
size 5265
|
||||||
Reference in New Issue
Block a user