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

Model: anwgpt/anwllama-1-chat
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-06-15 00:07:40 +08:00
commit fe1aef0be5
33 changed files with 832125 additions and 0 deletions

35
.gitattributes vendored Normal file
View 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

35
README.md Normal file
View File

@@ -0,0 +1,35 @@
---
license: mit
language:
- en
library_name: transformers
---
# anwllama 1
Introducing `anwllama 1`! A experimental version of `anwgpt4` using llama architecture!
Now it uses ChatLM format!
The model is under trained
```
User: What is artificial intelligence?
Assistant: Yes, one can do this in-depth data. It does not have the capability to test and optimize their research. The algorithm can be used as an array of tasks, such as data or applications, using the process of solving and testing methods.
--------------------------------------------------
User: How do neural networks work?
Assistant: Yes, some high-quality devices that use artificial intelligence can be used to solve a problem-solving process and provide a comprehensive value for their security. It is often used in technology, allowing for more efficient solutions and strategies to improve communication. Additionally, solar-based systems also helps reduce air pollution, including reducing performance, depression, and improved costs.
--------------------------------------------------
User: Who created you?
Assistant: Unitedes would be used to create an algorithm with the result of data, including the following:
1. Open the data from the user and enter the data
2. The program should then display the data in the server
3. Use the input array to ensure that the data is invalid or not in use
4. If it is done by the input input and then the user has any questions or concerns about how it can handle the input value of the data
5. Finally, the program will find the number of examples in the code for each data and the amount required to be calculated
```

15
chat_template.jinja Normal file
View File

@@ -0,0 +1,15 @@
{% for message in messages %}
{% if message['role'] == 'user' %}
{{ '<|user|>
' + message['content'] + eos_token }}
{% elif message['role'] == 'system' %}
{{ '<|system|>
' + message['content'] + eos_token }}
{% elif message['role'] == 'assistant' %}
{{ '<|assistant|>
' + message['content'] + eos_token }}
{% endif %}
{% if loop.last and add_generation_prompt %}
{{ '<|assistant|>' }}
{% endif %}
{% endfor %}

View File

@@ -0,0 +1,15 @@
{% for message in messages %}
{% if message['role'] == 'user' %}
{{ '<|user|>
' + message['content'] + eos_token }}
{% elif message['role'] == 'system' %}
{{ '<|system|>
' + message['content'] + eos_token }}
{% elif message['role'] == 'assistant' %}
{{ '<|assistant|>
' + message['content'] + eos_token }}
{% endif %}
{% if loop.last and add_generation_prompt %}
{{ '<|assistant|>' }}
{% endif %}
{% endfor %}

View File

@@ -0,0 +1,32 @@
{
"architectures": [
"LlamaForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 1,
"dtype": "float32",
"eos_token_id": 2,
"head_dim": 64,
"hidden_act": "silu",
"hidden_size": 384,
"initializer_range": 0.02,
"intermediate_size": 1024,
"max_position_embeddings": 2048,
"mlp_bias": false,
"model_type": "llama",
"num_attention_heads": 6,
"num_hidden_layers": 6,
"num_key_value_heads": 2,
"pad_token_id": null,
"pretraining_tp": 1,
"rms_norm_eps": 1e-05,
"rope_parameters": {
"rope_theta": 10000.0,
"rope_type": "default"
},
"tie_word_embeddings": false,
"transformers_version": "5.0.0",
"use_cache": false,
"vocab_size": 32002
}

View File

@@ -0,0 +1,9 @@
{
"_from_model_config": true,
"bos_token_id": 1,
"eos_token_id": 2,
"output_attentions": false,
"output_hidden_states": false,
"transformers_version": "5.0.0",
"use_cache": false
}

View File

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

View File

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

View File

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

View File

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

View File

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

277171
checkpoint-1400/tokenizer.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,19 @@
{
"backend": "tokenizers",
"bos_token": "<s>",
"clean_up_tokenization_spaces": false,
"eos_token": "</s>",
"extra_special_tokens": [
"<|im_start|>",
"<|im_end|>"
],
"is_local": false,
"legacy": false,
"model_max_length": 2048,
"pad_token": "</s>",
"padding_side": "right",
"sp_model_kwargs": {},
"tokenizer_class": "TokenizersBackend",
"unk_token": "<unk>",
"use_default_system_prompt": false
}

View File

@@ -0,0 +1,132 @@
{
"best_global_step": null,
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 3.58112,
"eval_steps": 500,
"global_step": 1400,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.256,
"grad_norm": 1.265313982963562,
"learning_rate": 2.4750000000000002e-05,
"loss": 6.332213745117188,
"step": 100
},
{
"epoch": 0.512,
"grad_norm": 1.302055835723877,
"learning_rate": 4.975e-05,
"loss": 4.7161932373046875,
"step": 200
},
{
"epoch": 0.768,
"grad_norm": 1.1382993459701538,
"learning_rate": 7.475e-05,
"loss": 4.228371276855468,
"step": 300
},
{
"epoch": 1.02304,
"grad_norm": 1.2706514596939087,
"learning_rate": 9.975000000000001e-05,
"loss": 3.9627920532226564,
"step": 400
},
{
"epoch": 1.27904,
"grad_norm": 1.1472086906433105,
"learning_rate": 0.00012475,
"loss": 3.7471749877929685,
"step": 500
},
{
"epoch": 1.53504,
"grad_norm": 1.0958755016326904,
"learning_rate": 0.00014975,
"loss": 3.609476318359375,
"step": 600
},
{
"epoch": 1.79104,
"grad_norm": 1.1427408456802368,
"learning_rate": 0.00017475,
"loss": 3.5249368286132814,
"step": 700
},
{
"epoch": 2.04608,
"grad_norm": 2.976166248321533,
"learning_rate": 0.00019975,
"loss": 3.419891357421875,
"step": 800
},
{
"epoch": 2.30208,
"grad_norm": 1.2115665674209595,
"learning_rate": 0.00022475000000000001,
"loss": 3.2445193481445314,
"step": 900
},
{
"epoch": 2.55808,
"grad_norm": 1.1276987791061401,
"learning_rate": 0.00024975,
"loss": 3.2045053100585936,
"step": 1000
},
{
"epoch": 2.81408,
"grad_norm": 1.2419933080673218,
"learning_rate": 0.00022658677055413672,
"loss": 3.169610595703125,
"step": 1100
},
{
"epoch": 3.06912,
"grad_norm": 1.1096692085266113,
"learning_rate": 0.0001643733149569131,
"loss": 3.0363580322265626,
"step": 1200
},
{
"epoch": 3.32512,
"grad_norm": 1.0762932300567627,
"learning_rate": 8.712059129590328e-05,
"loss": 2.8395703125,
"step": 1300
},
{
"epoch": 3.58112,
"grad_norm": 1.061633586883545,
"learning_rate": 2.4336514286109764e-05,
"loss": 2.7858563232421876,
"step": 1400
}
],
"logging_steps": 100,
"max_steps": 1500,
"num_input_tokens_seen": 0,
"num_train_epochs": 4,
"save_steps": 200,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": false
},
"attributes": {}
}
},
"total_flos": 5976661876015104.0,
"train_batch_size": 4,
"trial_name": null,
"trial_params": null
}

View File

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

View File

@@ -0,0 +1,15 @@
{% for message in messages %}
{% if message['role'] == 'user' %}
{{ '<|user|>
' + message['content'] + eos_token }}
{% elif message['role'] == 'system' %}
{{ '<|system|>
' + message['content'] + eos_token }}
{% elif message['role'] == 'assistant' %}
{{ '<|assistant|>
' + message['content'] + eos_token }}
{% endif %}
{% if loop.last and add_generation_prompt %}
{{ '<|assistant|>' }}
{% endif %}
{% endfor %}

View File

@@ -0,0 +1,32 @@
{
"architectures": [
"LlamaForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 1,
"dtype": "float32",
"eos_token_id": 2,
"head_dim": 64,
"hidden_act": "silu",
"hidden_size": 384,
"initializer_range": 0.02,
"intermediate_size": 1024,
"max_position_embeddings": 2048,
"mlp_bias": false,
"model_type": "llama",
"num_attention_heads": 6,
"num_hidden_layers": 6,
"num_key_value_heads": 2,
"pad_token_id": null,
"pretraining_tp": 1,
"rms_norm_eps": 1e-05,
"rope_parameters": {
"rope_theta": 10000.0,
"rope_type": "default"
},
"tie_word_embeddings": false,
"transformers_version": "5.0.0",
"use_cache": false,
"vocab_size": 32002
}

View File

@@ -0,0 +1,9 @@
{
"_from_model_config": true,
"bos_token_id": 1,
"eos_token_id": 2,
"output_attentions": false,
"output_hidden_states": false,
"transformers_version": "5.0.0",
"use_cache": false
}

View File

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

View File

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

View File

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

View File

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

View File

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

277171
checkpoint-1500/tokenizer.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,19 @@
{
"backend": "tokenizers",
"bos_token": "<s>",
"clean_up_tokenization_spaces": false,
"eos_token": "</s>",
"extra_special_tokens": [
"<|im_start|>",
"<|im_end|>"
],
"is_local": false,
"legacy": false,
"model_max_length": 2048,
"pad_token": "</s>",
"padding_side": "right",
"sp_model_kwargs": {},
"tokenizer_class": "TokenizersBackend",
"unk_token": "<unk>",
"use_default_system_prompt": false
}

View File

@@ -0,0 +1,139 @@
{
"best_global_step": null,
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 3.83712,
"eval_steps": 500,
"global_step": 1500,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.256,
"grad_norm": 1.265313982963562,
"learning_rate": 2.4750000000000002e-05,
"loss": 6.332213745117188,
"step": 100
},
{
"epoch": 0.512,
"grad_norm": 1.302055835723877,
"learning_rate": 4.975e-05,
"loss": 4.7161932373046875,
"step": 200
},
{
"epoch": 0.768,
"grad_norm": 1.1382993459701538,
"learning_rate": 7.475e-05,
"loss": 4.228371276855468,
"step": 300
},
{
"epoch": 1.02304,
"grad_norm": 1.2706514596939087,
"learning_rate": 9.975000000000001e-05,
"loss": 3.9627920532226564,
"step": 400
},
{
"epoch": 1.27904,
"grad_norm": 1.1472086906433105,
"learning_rate": 0.00012475,
"loss": 3.7471749877929685,
"step": 500
},
{
"epoch": 1.53504,
"grad_norm": 1.0958755016326904,
"learning_rate": 0.00014975,
"loss": 3.609476318359375,
"step": 600
},
{
"epoch": 1.79104,
"grad_norm": 1.1427408456802368,
"learning_rate": 0.00017475,
"loss": 3.5249368286132814,
"step": 700
},
{
"epoch": 2.04608,
"grad_norm": 2.976166248321533,
"learning_rate": 0.00019975,
"loss": 3.419891357421875,
"step": 800
},
{
"epoch": 2.30208,
"grad_norm": 1.2115665674209595,
"learning_rate": 0.00022475000000000001,
"loss": 3.2445193481445314,
"step": 900
},
{
"epoch": 2.55808,
"grad_norm": 1.1276987791061401,
"learning_rate": 0.00024975,
"loss": 3.2045053100585936,
"step": 1000
},
{
"epoch": 2.81408,
"grad_norm": 1.2419933080673218,
"learning_rate": 0.00022658677055413672,
"loss": 3.169610595703125,
"step": 1100
},
{
"epoch": 3.06912,
"grad_norm": 1.1096692085266113,
"learning_rate": 0.0001643733149569131,
"loss": 3.0363580322265626,
"step": 1200
},
{
"epoch": 3.32512,
"grad_norm": 1.0762932300567627,
"learning_rate": 8.712059129590328e-05,
"loss": 2.8395703125,
"step": 1300
},
{
"epoch": 3.58112,
"grad_norm": 1.061633586883545,
"learning_rate": 2.4336514286109764e-05,
"loss": 2.7858563232421876,
"step": 1400
},
{
"epoch": 3.83712,
"grad_norm": 0.9627223610877991,
"learning_rate": 2.4673929828605834e-09,
"loss": 2.765904541015625,
"step": 1500
}
],
"logging_steps": 100,
"max_steps": 1500,
"num_input_tokens_seen": 0,
"num_train_epochs": 4,
"save_steps": 200,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": true
},
"attributes": {}
}
},
"total_flos": 6403909619810304.0,
"train_batch_size": 4,
"trial_name": null,
"trial_params": null
}

View File

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

32
config.json Normal file
View File

@@ -0,0 +1,32 @@
{
"architectures": [
"LlamaForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 1,
"dtype": "float32",
"eos_token_id": 2,
"head_dim": 64,
"hidden_act": "silu",
"hidden_size": 384,
"initializer_range": 0.02,
"intermediate_size": 1024,
"max_position_embeddings": 2048,
"mlp_bias": false,
"model_type": "llama",
"num_attention_heads": 6,
"num_hidden_layers": 6,
"num_key_value_heads": 2,
"pad_token_id": null,
"pretraining_tp": 1,
"rms_norm_eps": 1e-05,
"rope_parameters": {
"rope_theta": 10000.0,
"rope_type": "default"
},
"tie_word_embeddings": false,
"transformers_version": "5.0.0",
"use_cache": false,
"vocab_size": 32002
}

9
generation_config.json Normal file
View File

@@ -0,0 +1,9 @@
{
"_from_model_config": true,
"bos_token_id": 1,
"eos_token_id": 2,
"output_attentions": false,
"output_hidden_states": false,
"transformers_version": "5.0.0",
"use_cache": false
}

3
model.safetensors Normal file
View File

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

7
model_metadata.json Normal file
View File

@@ -0,0 +1,7 @@
{
"model_name": "i3-Llama-ChatML",
"architecture": "LlamaForCausalLM",
"format": "ChatML",
"parameters": 34019712,
"vocab_size": 32002
}

277171
tokenizer.json Normal file

File diff suppressed because it is too large Load Diff

19
tokenizer_config.json Normal file
View File

@@ -0,0 +1,19 @@
{
"backend": "tokenizers",
"bos_token": "<s>",
"clean_up_tokenization_spaces": false,
"eos_token": "</s>",
"extra_special_tokens": [
"<|im_start|>",
"<|im_end|>"
],
"is_local": false,
"legacy": false,
"model_max_length": 2048,
"pad_token": "</s>",
"padding_side": "right",
"sp_model_kwargs": {},
"tokenizer_class": "TokenizersBackend",
"unk_token": "<unk>",
"use_default_system_prompt": false
}