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

Model: M4-ai/tau-0.5B-instruct-DPOP
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-05-06 17:02:52 +08:00
commit a7797a017e
11 changed files with 454694 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

44
README.md Normal file
View File

@@ -0,0 +1,44 @@
---
license: other
language:
- en
---
# tau-instruct-0.5B-DPOP
## Model Details
- **Model Name:** tau-instruct-0.5B-DPOP
- **Base Model:** tau-0.5B
- **Model Size:** 0.5B parameters
- **Model Type:** Instruction-following Language Model
- **Training Data**: About 700 high quality preference entries annotated by GPT-4.
- **Training Procedure**: The DPO-Positive algorithm introduced by abacusai was used to train this model.
## Model Use
tau-instruct-0.5B-DPOP is an instruction-following language model designed to follow user instructions and provide assistance across a wide range of tasks, including but not limited to:
- Question answering
- Text generation and completion
- Mathematical problem solving
- Code understanding, generation, and explanation
- Reasoning and analysis
- Trivia and general knowledge
The model's ability to follow instructions, combined with its knowledge in various domains, makes it suitable for applications such as virtual assistants, educational tools, and research aids.
## Performance and Limitations
Preliminary evaluations indicate that tau-instruct-0.5B-DPOP exhibits improved performance in following instructions compared to its base model, tau-0.5B. However, the model may still have limitations and biases inherited from its base model and the fine-tuning dataset.
Users should be aware that the model's performance may vary depending on the complexity and clarity of the provided instructions. It is essential to evaluate the model's outputs critically and provide feedback to support ongoing improvements.
## Environmental Impact
The fine-tuning process for tau-instruct-0.5B-DPOP required additional computational resources, contributing to the model's overall environmental impact. Efforts were made to optimize the fine-tuning process and minimize the carbon footprint.
## Ethical Considerations
tau-instruct-0.5B-DPOP has the potential to be used in a wide range of applications, some of which may have ethical implications. Users should ensure that the model is used responsibly and does not cause harm or discriminate against individuals or groups.
As with any AI system, it is crucial to consider the potential biases and limitations of the model when deploying it in real-world applications.
## Usage Rights
Make sure to read Qwen's license before using this model. The fine-tuned model, tau-instruct-0.5B-DPOP, is subject to the same usage rights as its base model, tau-0.5B.
## Evaluation
Coming soon.

5
added_tokens.json Normal file
View File

@@ -0,0 +1,5 @@
{
"<|endoftext|>": 151643,
"<|im_end|>": 151645,
"<|im_start|>": 151644
}

28
config.json Normal file
View File

@@ -0,0 +1,28 @@
{
"_name_or_path": "M4-ai/tau-0.5B-instruct",
"architectures": [
"Qwen2ForCausalLM"
],
"attention_dropout": 0.0,
"bos_token_id": 151643,
"eos_token_id": 151643,
"hidden_act": "silu",
"hidden_size": 1024,
"initializer_range": 0.02,
"intermediate_size": 2816,
"max_position_embeddings": 32768,
"max_window_layers": 21,
"model_type": "qwen2",
"num_attention_heads": 16,
"num_hidden_layers": 24,
"num_key_value_heads": 16,
"rms_norm_eps": 1e-06,
"rope_theta": 1000000.0,
"sliding_window": 32768,
"tie_word_embeddings": true,
"torch_dtype": "float16",
"transformers_version": "4.37.2",
"use_cache": true,
"use_sliding_window": false,
"vocab_size": 151936
}

6
generation_config.json Normal file
View File

@@ -0,0 +1,6 @@
{
"bos_token_id": 151643,
"eos_token_id": 151643,
"max_new_tokens": 2048,
"transformers_version": "4.37.2"
}

151388
merges.txt Normal file

File diff suppressed because it is too large Load Diff

3
model.safetensors Normal file
View File

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

21
special_tokens_map.json Normal file
View File

@@ -0,0 +1,21 @@
{
"additional_special_tokens": [
"<|im_start|>",
"<|im_end|>"
],
"bos_token": {
"content": "<|endoftext|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"eos_token": {
"content": "<|endoftext|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"pad_token": "<|endoftext|>"
}

303116
tokenizer.json Normal file

File diff suppressed because it is too large Load Diff

47
tokenizer_config.json Normal file
View File

@@ -0,0 +1,47 @@
{
"add_prefix_space": false,
"added_tokens_decoder": {
"151643": {
"content": "<|endoftext|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"151644": {
"content": "<|im_start|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"151645": {
"content": "<|im_end|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
}
},
"additional_special_tokens": [
"<|im_start|>",
"<|im_end|>"
],
"bos_token": "<|endoftext|>",
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
"clean_up_tokenization_spaces": false,
"eos_token": "<|endoftext|>",
"errors": "replace",
"max_length": 512,
"model_max_length": 32768,
"pad_token": "<|endoftext|>",
"split_special_tokens": false,
"stride": 0,
"tokenizer_class": "Qwen2Tokenizer",
"truncation_side": "right",
"truncation_strategy": "longest_first",
"unk_token": null
}

1
vocab.json Normal file

File diff suppressed because one or more lines are too long