初始化项目,由ModelHub XC社区提供模型

Model: Josephgflowers/tinyllama-730M-test
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-08-14 01:09:13 +08:00
commit a60c1b6753
15 changed files with 696 additions and 0 deletions

49
.gitattributes vendored Normal file
View File

@@ -0,0 +1,49 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bin.* filter=lfs diff=lfs merge=lfs -text
*.bz2 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
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack 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
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
saved_model/**/* 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
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zstandard filter=lfs diff=lfs merge=lfs -text
*.tfevents* filter=lfs diff=lfs merge=lfs -text
*.db* filter=lfs diff=lfs merge=lfs -text
*.ark* filter=lfs diff=lfs merge=lfs -text
**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text
**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text
**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
*.ckpt filter=lfs diff=lfs merge=lfs -text
*.gguf* filter=lfs diff=lfs merge=lfs -text
*.ggml filter=lfs diff=lfs merge=lfs -text
*.llamafile* filter=lfs diff=lfs merge=lfs -text
*.pt2 filter=lfs diff=lfs merge=lfs -text
*.mlmodel filter=lfs diff=lfs merge=lfs -text
*.npy filter=lfs diff=lfs merge=lfs -text
*.npz filter=lfs diff=lfs merge=lfs -text
*.pickle filter=lfs diff=lfs merge=lfs -text
*.pkl filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text
tokenizer.json filter=lfs diff=lfs merge=lfs -text

132
README.md Normal file
View File

@@ -0,0 +1,132 @@
---
license: mit
widget:
- text: '<|system|>
You are a helpful assistant</s>
<|user|>
What is your name? Tell me about yourself.</s>
<|assistant|>'
model-index:
- name: tinyllama-730M-test
results:
- task:
type: text-generation
name: Text Generation
dataset:
name: AI2 Reasoning Challenge (25-Shot)
type: ai2_arc
config: ARC-Challenge
split: test
args:
num_few_shot: 25
metrics:
- type: acc_norm
value: 25.09
name: normalized accuracy
source:
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Josephgflowers/tinyllama-730M-test
name: Open LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: HellaSwag (10-Shot)
type: hellaswag
split: validation
args:
num_few_shot: 10
metrics:
- type: acc_norm
value: 33.82
name: normalized accuracy
source:
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Josephgflowers/tinyllama-730M-test
name: Open LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: MMLU (5-Shot)
type: cais/mmlu
config: all
split: test
args:
num_few_shot: 5
metrics:
- type: acc
value: 24.43
name: accuracy
source:
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Josephgflowers/tinyllama-730M-test
name: Open LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: TruthfulQA (0-shot)
type: truthful_qa
config: multiple_choice
split: validation
args:
num_few_shot: 0
metrics:
- type: mc2
value: 42.9
source:
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Josephgflowers/tinyllama-730M-test
name: Open LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: Winogrande (5-shot)
type: winogrande
config: winogrande_xl
split: validation
args:
num_few_shot: 5
metrics:
- type: acc
value: 51.07
name: accuracy
source:
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Josephgflowers/tinyllama-730M-test
name: Open LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: GSM8k (5-shot)
type: gsm8k
config: main
split: test
args:
num_few_shot: 5
metrics:
- type: acc
value: 0.0
name: accuracy
source:
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Josephgflowers/tinyllama-730M-test
name: Open LLM Leaderboard
---
I cut my TinyLlama 1.1B cinder v 2 down from 22 layers to 14. At 14 there was no coherent text but there were emerging ideas of a response. 1000 steps on step-by-step dataset.
6000 on Reason-with-cinder. The loss was still over 1 and the learning rate was still over 4. This model needs significat training. I am putting it up as a base model that
needs work. If you continue training please let me know on the tinyllama discord, I have some interesting plans for this model.
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_Josephgflowers__tinyllama-730M-test)
| Metric |Value|
|---------------------------------|----:|
|Avg. |29.55|
|AI2 Reasoning Challenge (25-Shot)|25.09|
|HellaSwag (10-Shot) |33.82|
|MMLU (5-Shot) |24.43|
|TruthfulQA (0-shot) |42.90|
|Winogrande (5-shot) |51.07|
|GSM8k (5-shot) | 0.00|

29
config.json Normal file
View File

@@ -0,0 +1,29 @@
{
"_name_or_path": "/content/740-M-checkpoint-3108",
"architectures": [
"LlamaForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 1,
"eos_token_id": 2,
"hidden_act": "silu",
"hidden_size": 2048,
"initializer_range": 0.02,
"intermediate_size": 5632,
"max_position_embeddings": 2048,
"model_type": "llama",
"num_attention_heads": 32,
"num_hidden_layers": 14,
"num_key_value_heads": 4,
"pretraining_tp": 1,
"rms_norm_eps": 1e-05,
"rope_scaling": null,
"rope_theta": 10000.0,
"tie_word_embeddings": false,
"torch_dtype": "float32",
"transformers_version": "4.38.0.dev0",
"unsloth_version": "2024.1",
"use_cache": false,
"vocab_size": 32000
}

1
configuration.json Normal file
View File

@@ -0,0 +1 @@
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}

7
generation_config.json Normal file
View File

@@ -0,0 +1,7 @@
{
"_from_model_config": true,
"bos_token_id": 1,
"eos_token_id": 2,
"transformers_version": "4.38.0.dev0",
"use_cache": false
}

3
model.safetensors Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:86e7b4bcf4e67a101cc24fa5825024f076bf2045afd1b4517ed91592941005db
size 2990791024

3
optimizer.pt Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4766397f416f5f6b517adf0c6b0921b74b1b39d8e23526181b51e9caa68111b
size 2618682

3
rng_state.pth Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:386fcc8cc1089aade9450d86fb239ea3483f455fd2d78d8378645feecfec9d69
size 14244

3
scheduler.pt Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:47743ce1a1f83b0fd753c7f0f81e90340a93350c8168453372bb1a775797d93e
size 1064

30
special_tokens_map.json Normal file
View File

@@ -0,0 +1,30 @@
{
"bos_token": {
"content": "<s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"eos_token": {
"content": "</s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"pad_token": {
"content": "</s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"unk_token": {
"content": "<unk>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
}
}

BIN
tokenizer.json (Stored with Git LFS) Normal file

Binary file not shown.

BIN
tokenizer.model (Stored with Git LFS) Normal file

Binary file not shown.

46
tokenizer_config.json Normal file
View File

@@ -0,0 +1,46 @@
{
"add_bos_token": true,
"add_eos_token": false,
"added_tokens_decoder": {
"0": {
"content": "<unk>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"1": {
"content": "<s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"2": {
"content": "</s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
}
},
"bos_token": "<s>",
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
"clean_up_tokenization_spaces": false,
"eos_token": "</s>",
"legacy": false,
"max_length": 2048,
"model_max_length": 2048,
"pad_token": "</s>",
"padding_side": "right",
"sp_model_kwargs": {},
"stride": 0,
"tokenizer_class": "LlamaTokenizer",
"truncation_side": "right",
"truncation_strategy": "longest_first",
"unk_token": "<unk>",
"use_default_system_prompt": false
}

381
trainer_state.json Normal file
View File

@@ -0,0 +1,381 @@
{
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 0.21150219433526624,
"eval_steps": 500,
"global_step": 3000,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.0,
"learning_rate": 4.9823745064861824e-05,
"loss": 1.064,
"step": 50
},
{
"epoch": 0.01,
"learning_rate": 4.964749012972363e-05,
"loss": 0.9951,
"step": 100
},
{
"epoch": 0.01,
"learning_rate": 4.9471235194585454e-05,
"loss": 1.0051,
"step": 150
},
{
"epoch": 0.01,
"learning_rate": 4.929498025944726e-05,
"loss": 1.0086,
"step": 200
},
{
"epoch": 0.02,
"learning_rate": 4.9118725324309084e-05,
"loss": 1.1256,
"step": 250
},
{
"epoch": 0.02,
"learning_rate": 4.89424703891709e-05,
"loss": 1.0419,
"step": 300
},
{
"epoch": 0.02,
"learning_rate": 4.8766215454032714e-05,
"loss": 1.0368,
"step": 350
},
{
"epoch": 0.03,
"learning_rate": 4.8589960518894536e-05,
"loss": 0.9884,
"step": 400
},
{
"epoch": 0.03,
"learning_rate": 4.8413705583756344e-05,
"loss": 1.01,
"step": 450
},
{
"epoch": 0.04,
"learning_rate": 4.8237450648618166e-05,
"loss": 1.0734,
"step": 500
},
{
"epoch": 0.04,
"learning_rate": 4.806119571347998e-05,
"loss": 1.0388,
"step": 550
},
{
"epoch": 0.04,
"learning_rate": 4.7884940778341796e-05,
"loss": 1.0576,
"step": 600
},
{
"epoch": 0.05,
"learning_rate": 4.770868584320361e-05,
"loss": 1.0449,
"step": 650
},
{
"epoch": 0.05,
"learning_rate": 4.7532430908065426e-05,
"loss": 1.0809,
"step": 700
},
{
"epoch": 0.05,
"learning_rate": 4.735617597292725e-05,
"loss": 1.0888,
"step": 750
},
{
"epoch": 0.06,
"learning_rate": 4.717992103778906e-05,
"loss": 1.031,
"step": 800
},
{
"epoch": 0.06,
"learning_rate": 4.700366610265088e-05,
"loss": 1.0546,
"step": 850
},
{
"epoch": 0.06,
"learning_rate": 4.682741116751269e-05,
"loss": 1.093,
"step": 900
},
{
"epoch": 0.07,
"learning_rate": 4.665468133107727e-05,
"loss": 1.0729,
"step": 950
},
{
"epoch": 0.07,
"learning_rate": 4.647842639593909e-05,
"loss": 1.0771,
"step": 1000
},
{
"epoch": 0.07,
"learning_rate": 4.6302171460800905e-05,
"loss": 1.1318,
"step": 1050
},
{
"epoch": 0.08,
"learning_rate": 4.612591652566272e-05,
"loss": 1.0114,
"step": 1100
},
{
"epoch": 0.08,
"learning_rate": 4.5949661590524535e-05,
"loss": 1.0272,
"step": 1150
},
{
"epoch": 0.08,
"learning_rate": 4.577340665538635e-05,
"loss": 1.0503,
"step": 1200
},
{
"epoch": 0.09,
"learning_rate": 4.559715172024817e-05,
"loss": 0.9816,
"step": 1250
},
{
"epoch": 0.09,
"learning_rate": 4.542794698251551e-05,
"loss": 1.001,
"step": 1300
},
{
"epoch": 0.1,
"learning_rate": 4.525169204737733e-05,
"loss": 1.1184,
"step": 1350
},
{
"epoch": 0.1,
"learning_rate": 4.507543711223914e-05,
"loss": 1.0958,
"step": 1400
},
{
"epoch": 0.1,
"learning_rate": 4.4899182177100965e-05,
"loss": 1.0912,
"step": 1450
},
{
"epoch": 0.11,
"learning_rate": 4.472292724196277e-05,
"loss": 1.0226,
"step": 1500
},
{
"epoch": 0.11,
"learning_rate": 4.4546672306824595e-05,
"loss": 1.0038,
"step": 1550
},
{
"epoch": 0.11,
"learning_rate": 4.437041737168641e-05,
"loss": 0.9825,
"step": 1600
},
{
"epoch": 0.12,
"learning_rate": 4.4194162436548225e-05,
"loss": 1.0476,
"step": 1650
},
{
"epoch": 0.12,
"learning_rate": 4.401790750141005e-05,
"loss": 1.0642,
"step": 1700
},
{
"epoch": 0.12,
"learning_rate": 4.3841652566271855e-05,
"loss": 1.0254,
"step": 1750
},
{
"epoch": 0.13,
"learning_rate": 4.366539763113368e-05,
"loss": 1.0941,
"step": 1800
},
{
"epoch": 0.13,
"learning_rate": 4.3489142695995485e-05,
"loss": 0.9739,
"step": 1850
},
{
"epoch": 0.13,
"learning_rate": 4.331288776085731e-05,
"loss": 1.0468,
"step": 1900
},
{
"epoch": 0.14,
"learning_rate": 4.313663282571912e-05,
"loss": 1.0706,
"step": 1950
},
{
"epoch": 0.14,
"learning_rate": 4.296037789058094e-05,
"loss": 0.9796,
"step": 2000
},
{
"epoch": 0.14,
"learning_rate": 4.278412295544276e-05,
"loss": 1.0202,
"step": 2050
},
{
"epoch": 0.15,
"learning_rate": 4.260786802030457e-05,
"loss": 1.0263,
"step": 2100
},
{
"epoch": 0.15,
"learning_rate": 4.243161308516639e-05,
"loss": 0.9823,
"step": 2150
},
{
"epoch": 0.16,
"learning_rate": 4.2255358150028204e-05,
"loss": 1.0187,
"step": 2200
},
{
"epoch": 0.16,
"learning_rate": 4.207910321489002e-05,
"loss": 1.0219,
"step": 2250
},
{
"epoch": 0.16,
"learning_rate": 4.1902848279751834e-05,
"loss": 1.0641,
"step": 2300
},
{
"epoch": 0.17,
"learning_rate": 4.172659334461365e-05,
"loss": 0.9979,
"step": 2350
},
{
"epoch": 0.17,
"learning_rate": 4.155033840947547e-05,
"loss": 0.9762,
"step": 2400
},
{
"epoch": 0.17,
"learning_rate": 4.1374083474337286e-05,
"loss": 0.983,
"step": 2450
},
{
"epoch": 0.18,
"learning_rate": 4.11978285391991e-05,
"loss": 1.0849,
"step": 2500
},
{
"epoch": 0.18,
"learning_rate": 4.1021573604060916e-05,
"loss": 1.0281,
"step": 2550
},
{
"epoch": 0.18,
"learning_rate": 4.084531866892273e-05,
"loss": 1.0041,
"step": 2600
},
{
"epoch": 0.19,
"learning_rate": 4.0669063733784546e-05,
"loss": 1.0055,
"step": 2650
},
{
"epoch": 0.19,
"learning_rate": 4.049280879864636e-05,
"loss": 1.014,
"step": 2700
},
{
"epoch": 0.19,
"learning_rate": 4.0316553863508176e-05,
"loss": 1.0347,
"step": 2750
},
{
"epoch": 0.2,
"learning_rate": 4.014029892837e-05,
"loss": 0.9675,
"step": 2800
},
{
"epoch": 0.2,
"learning_rate": 3.996404399323181e-05,
"loss": 1.0086,
"step": 2850
},
{
"epoch": 0.2,
"learning_rate": 3.978778905809363e-05,
"loss": 0.9836,
"step": 2900
},
{
"epoch": 0.21,
"learning_rate": 3.961153412295544e-05,
"loss": 1.0441,
"step": 2950
},
{
"epoch": 0.21,
"learning_rate": 3.943527918781726e-05,
"loss": 1.0613,
"step": 3000
}
],
"logging_steps": 50,
"max_steps": 14184,
"num_input_tokens_seen": 0,
"num_train_epochs": 1,
"save_steps": 1000,
"total_flos": 1.0058830184448e+17,
"train_batch_size": 1,
"trial_name": null,
"trial_params": null
}

3
training_args.bin Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a66f85176067747802ad533b8a3c6046a84588e845ff8847619e673d9a5605ed
size 4856