初始化项目,由ModelHub XC社区提供模型
Model: aloobun/Cypher-Laser-Mixtral-2x1.8B-v0.1 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
|
||||
68
README.md
Normal file
68
README.md
Normal file
@@ -0,0 +1,68 @@
|
||||
---
|
||||
license: apache-2.0
|
||||
tags:
|
||||
- moe
|
||||
- frankenmoe
|
||||
- merge
|
||||
- mergekit
|
||||
- lazymergekit
|
||||
- aloobun/Cypher-Mini-Laser-1.8B
|
||||
- aloobun/Cypher-CoT-Laser-1.8B
|
||||
- laser
|
||||
base_model:
|
||||
- aloobun/Cypher-Mini-Laser-1.8B
|
||||
- aloobun/Cypher-CoT-Laser-1.8B
|
||||
datasets:
|
||||
- kaist-ai/CoT-Collection
|
||||
- Locutusque/Hercules-v3.0
|
||||
---
|
||||
|
||||
This work is based on implementation of the LASER technique, by @fernandofernandes & @ehartford.
|
||||
|
||||
I 'lasered' two models first and then merged them.
|
||||
|
||||
# Cypher-Laser-Mixtral-2x1.8B-v0.1
|
||||
|
||||
Cypher-Laser-Mixtral-2x1.8B-v0.1 is a Mixure of Experts (MoE) made with the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
|
||||
* [aloobun/Cypher-Mini-Laser-1.8B](https://huggingface.co/aloobun/Cypher-Mini-Laser-1.8B)
|
||||
* [aloobun/Cypher-CoT-Laser-1.8B](https://huggingface.co/aloobun/Cypher-CoT-Laser-1.8B)
|
||||
|
||||
## 🧩 Configuration
|
||||
|
||||
```yaml
|
||||
base_model: aloobun/Cypher-Mini-Laser-1.8B
|
||||
gate_mode: hidden
|
||||
dtype: bfloat16
|
||||
experts:
|
||||
- source_model: aloobun/Cypher-Mini-Laser-1.8B
|
||||
positive_prompts:
|
||||
- "Write a Python script that sorts a list of integers using the bubble sort algorithm."
|
||||
- "Write a JavaScript function that redirects a web page to another page after 5 seconds."
|
||||
- "Describe the steps to troubleshoot a fluid dynamics issue with a water fountain."
|
||||
- "Write a short story about a knight's quest to find a lost treasure, and then summarize it in one paragraph."
|
||||
- "Summarize the following article with details and clarity."
|
||||
- "Tell me about your favorite book and why you like it."
|
||||
|
||||
- source_model: aloobun/Cypher-CoT-Laser-1.8B
|
||||
positive_prompts:
|
||||
- "Liam saw an animal running on the farm. Q: Is it true that The animal could be a horse."
|
||||
- "Based on the following paragraph can we conclude that the sentence below is true?"
|
||||
- "According to the article, how do dolphins communicate with each other?"
|
||||
- "Solve this math problem Solve 7644 = 4648*d - 4557*d for d."
|
||||
- "If we have 3 marbles, and two roll under the counter, and one is found, how many marbles are there?"
|
||||
- "What is the result of 25 divided by 5?"
|
||||
- "Is it morally justifiable to lie to protect someone's feelings?"
|
||||
- "Determine if the sentence is true based on the text below. Choose from options."
|
||||
- "What might a person do if they forget their umbrella on a rainy day?"
|
||||
- "Which of the following is an example of renewable energy: a) Coal, b) Solar, c) Oil, d) Natural gas?"
|
||||
- "What is the capital of Canada? a) Toronto, b) Ottawa, c) Montreal, d) Vancouver."
|
||||
- "Which of these animals is a mammal? a) Snake, b) Dolphin, c) Turtle, d) Frog."
|
||||
- "Given a story, answer the question about the story."
|
||||
- "Given a prompt and four completions, select the completion that is the most plausible in continuing or answering the prompt."
|
||||
```
|
||||
|
||||
|
||||
## Format:
|
||||
```
|
||||
<|system|></s><|prompt|></s><|answer|>
|
||||
```
|
||||
33
config.json
Normal file
33
config.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"_name_or_path": "aloobun/Cypher-Mini-Laser-1.8B",
|
||||
"architectures": [
|
||||
"MixtralForCausalLM"
|
||||
],
|
||||
"attention_dropout": 0.0,
|
||||
"bos_token_id": 1,
|
||||
"eos_token_id": 2,
|
||||
"hidden_act": "silu",
|
||||
"hidden_size": 2560,
|
||||
"initializer_range": 0.02,
|
||||
"intermediate_size": 6912,
|
||||
"max_position_embeddings": 16384,
|
||||
"model_type": "mixtral",
|
||||
"num_attention_heads": 32,
|
||||
"num_experts_per_tok": 2,
|
||||
"num_hidden_layers": 24,
|
||||
"num_key_value_heads": 8,
|
||||
"num_local_experts": 2,
|
||||
"output_router_logits": false,
|
||||
"pad_token_id": 0,
|
||||
"pretraining_tp": 1,
|
||||
"rms_norm_eps": 1e-05,
|
||||
"rope_scaling": null,
|
||||
"rope_theta": 10000.0,
|
||||
"router_aux_loss_coef": 0.001,
|
||||
"sliding_window": null,
|
||||
"tie_word_embeddings": false,
|
||||
"torch_dtype": "bfloat16",
|
||||
"transformers_version": "4.38.1",
|
||||
"use_cache": true,
|
||||
"vocab_size": 32000
|
||||
}
|
||||
30
mergekit_moe_config.yml
Normal file
30
mergekit_moe_config.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
base_model: aloobun/Cypher-Mini-Laser-1.8B
|
||||
gate_mode: hidden
|
||||
dtype: bfloat16
|
||||
experts:
|
||||
- source_model: aloobun/Cypher-Mini-Laser-1.8B
|
||||
positive_prompts:
|
||||
- "Write a Python script that sorts a list of integers using the bubble sort algorithm."
|
||||
- "Write a JavaScript function that redirects a web page to another page after 5 seconds."
|
||||
- "Describe the steps to troubleshoot a fluid dynamics issue with a water fountain."
|
||||
- "Write a short story about a knight's quest to find a lost treasure, and then summarize it in one paragraph."
|
||||
- "Summarize the following article with details and clarity."
|
||||
- "Tell me about your favorite book and why you like it."
|
||||
|
||||
- source_model: aloobun/Cypher-CoT-Laser-1.8B
|
||||
positive_prompts:
|
||||
- "Liam saw an animal running on the farm. Q: Is it true that The animal could be a horse."
|
||||
- "Based on the following paragraph can we conclude that the sentence below is true?"
|
||||
- "According to the article, how do dolphins communicate with each other?"
|
||||
- "Solve this math problem Solve 7644 = 4648*d - 4557*d for d."
|
||||
- "If we have 3 marbles, and two roll under the counter, and one is found, how many marbles are there?"
|
||||
- "What is the result of 25 divided by 5?"
|
||||
- "Is it morally justifiable to lie to protect someone's feelings?"
|
||||
- "Determine if the sentence is true based on the text below. Choose from options."
|
||||
- "What might a person do if they forget their umbrella on a rainy day?"
|
||||
- "Which of the following is an example of renewable energy: a) Coal, b) Solar, c) Oil, d) Natural gas?"
|
||||
- "What is the capital of Canada? a) Toronto, b) Ottawa, c) Montreal, d) Vancouver."
|
||||
- "Which of these animals is a mammal? a) Snake, b) Dolphin, c) Turtle, d) Frog."
|
||||
- "Given a story, answer the question about the story."
|
||||
- "Given a prompt and four completions, select the completion that is the most plausible in continuing or answering the prompt."
|
||||
3
model-00001-of-00001.safetensors
Normal file
3
model-00001-of-00001.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0a6533cde407466ad837bf278a6573ce97dce64b5cf2c3442aa8c7fd37d027fe
|
||||
size 6210726744
|
||||
1
model.safetensors.index.json
Normal file
1
model.safetensors.index.json
Normal file
File diff suppressed because one or more lines are too long
43
special_tokens_map.json
Normal file
43
special_tokens_map.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"additional_special_tokens": [
|
||||
"<unk>",
|
||||
"<s>",
|
||||
"</s>"
|
||||
],
|
||||
"bos_token": {
|
||||
"content": "<s>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"cls_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": "<s>",
|
||||
"sep_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
|
||||
}
|
||||
}
|
||||
93398
tokenizer.json
Normal file
93398
tokenizer.json
Normal file
File diff suppressed because it is too large
Load Diff
BIN
tokenizer.model
(Stored with Git LFS)
Normal file
BIN
tokenizer.model
(Stored with Git LFS)
Normal file
Binary file not shown.
57
tokenizer_config.json
Normal file
57
tokenizer_config.json
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"add_bos_token": true,
|
||||
"add_eos_token": false,
|
||||
"add_prefix_space": true,
|
||||
"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
|
||||
}
|
||||
},
|
||||
"additional_special_tokens": [
|
||||
"<unk>",
|
||||
"<s>",
|
||||
"</s>"
|
||||
],
|
||||
"bos_token": "<s>",
|
||||
"chat_template": "{% for message in messages %}{% if message['role'] == 'user' %}{{ '<|prompt|>' + message['content'] + eos_token }}{% elif message['role'] == 'system' %}{{ '<|system|>' + message['content'] + eos_token }}{% elif message['role'] == 'assistant' %}{{ '<|answer|>' + message['content'] + eos_token }}{% endif %}{% if loop.last and add_generation_prompt %}{{ '<|answer|>' }}{% endif %}{% endfor %}",
|
||||
"clean_up_tokenization_spaces": false,
|
||||
"cls_token": "</s>",
|
||||
"eos_token": "</s>",
|
||||
"legacy": false,
|
||||
"max_length": 1024,
|
||||
"model_max_length": 1000000000000000019884624838656,
|
||||
"pad_to_multiple_of": null,
|
||||
"pad_token": "<s>",
|
||||
"pad_token_type_id": 0,
|
||||
"padding_side": "left",
|
||||
"sep_token": "</s>",
|
||||
"sp_model_kwargs": {},
|
||||
"spaces_between_special_tokens": false,
|
||||
"stride": 0,
|
||||
"tokenizer_class": "LlamaTokenizer",
|
||||
"truncation_side": "right",
|
||||
"truncation_strategy": "longest_first",
|
||||
"unk_token": "<unk>",
|
||||
"use_default_system_prompt": false
|
||||
}
|
||||
Reference in New Issue
Block a user