初始化项目,由ModelHub XC社区提供模型
Model: theprint/tinyllama_alpaca_cthulhu_small Source: Original Platform
This commit is contained in:
42
.gitattributes
vendored
Normal file
42
.gitattributes
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
*.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
|
||||
tinyllama_alpaca_cthulhu_small-unsloth.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
tinyllama_alpaca_cthulhu_small-unsloth.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
tinyllama_alpaca_cthulhu_small-unsloth.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
tinyllama_alpaca_cthulhu_small-unsloth.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
tinyllama_alpaca_cthulhu_small-unsloth.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
tinyllama_alpaca_cthulhu_small-unsloth.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
tinyllama_alpaca_cthulhu_small-unsloth.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
34
README.md
Normal file
34
README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
language:
|
||||
- en
|
||||
license: apache-2.0
|
||||
tags:
|
||||
- text-generation-inference
|
||||
- transformers
|
||||
- unsloth
|
||||
- llama
|
||||
- gguf
|
||||
- trl
|
||||
- sft
|
||||
base_model: unsloth/tinyllama-bnb-4bit
|
||||
pipeline_tag: text-generation
|
||||
---
|
||||
|
||||
**IA IA! A tiny Cthulhu cultist!**
|
||||
This TinyLlama variant is fine tuned on Cthulhu Mythos, so you can have your very own cultist AI friend.
|
||||
|
||||
**5/3/24 Update:** The model was given a bit more training and several gguf files were uploaded.
|
||||
|
||||
This model was mainly created to test a cthulhu-fied data set. This tiny model is a proof of concept, before a larger model is trained on the full data set. At that point, I will also make the data set public.
|
||||
|
||||
The Cthulhu Mythos data set is based on alpaca-cleaned, except all the replies have been re-written to sound like they were given by a cultist of Cthulhu. Only a subset of the data (10k entries) was used to train the first iteration of this model
|
||||
|
||||
# Uploaded model
|
||||
|
||||
- **Developed by:** theprint
|
||||
- **License:** apache-2.0
|
||||
- **Finetuned from model :** unsloth/tinyllama-bnb-4bit
|
||||
|
||||
This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
|
||||
|
||||
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
||||
34
adapter_config.json
Normal file
34
adapter_config.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"alpha_pattern": {},
|
||||
"auto_mapping": null,
|
||||
"base_model_name_or_path": "unsloth/tinyllama-bnb-4bit",
|
||||
"bias": "none",
|
||||
"fan_in_fan_out": false,
|
||||
"inference_mode": true,
|
||||
"init_lora_weights": true,
|
||||
"layer_replication": null,
|
||||
"layers_pattern": null,
|
||||
"layers_to_transform": null,
|
||||
"loftq_config": {},
|
||||
"lora_alpha": 32,
|
||||
"lora_dropout": 0,
|
||||
"megatron_config": null,
|
||||
"megatron_core": "megatron.core",
|
||||
"modules_to_save": null,
|
||||
"peft_type": "LORA",
|
||||
"r": 32,
|
||||
"rank_pattern": {},
|
||||
"revision": "unsloth",
|
||||
"target_modules": [
|
||||
"q_proj",
|
||||
"o_proj",
|
||||
"k_proj",
|
||||
"v_proj",
|
||||
"gate_proj",
|
||||
"up_proj",
|
||||
"down_proj"
|
||||
],
|
||||
"task_type": "CAUSAL_LM",
|
||||
"use_dora": false,
|
||||
"use_rslora": true
|
||||
}
|
||||
3
adapter_model.safetensors
Normal file
3
adapter_model.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6f8b33df2d144d6893eae85872b78af0c6f361dc258c03960f39534026fa4a09
|
||||
size 100966336
|
||||
3
config.json
Normal file
3
config.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"model_type": "llama"
|
||||
}
|
||||
7
generation_config.json
Normal file
7
generation_config.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"bos_token_id": 1,
|
||||
"eos_token_id": 2,
|
||||
"max_length": 2048,
|
||||
"pad_token_id": 0,
|
||||
"transformers_version": "4.40.1"
|
||||
}
|
||||
3
pytorch_model.bin
Normal file
3
pytorch_model.bin
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:04e417332e268f189d9c7da742e96a58ecb5c17da86940957d6de9e8a118894a
|
||||
size 2200164718
|
||||
30
special_tokens_map.json
Normal file
30
special_tokens_map.json
Normal 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": "<unk>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"unk_token": {
|
||||
"content": "<unk>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
}
|
||||
}
|
||||
3
tinyllama_alpaca_cthulhu_small-unsloth.F16.gguf
Normal file
3
tinyllama_alpaca_cthulhu_small-unsloth.F16.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fee32097f74c34d8a181ec4834ee1750cb83a72d41d0d537743521f226671585
|
||||
size 2201016992
|
||||
3
tinyllama_alpaca_cthulhu_small-unsloth.Q2_K.gguf
Normal file
3
tinyllama_alpaca_cthulhu_small-unsloth.Q2_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6906c4954e21b1069c8179842c51b099908ef1ee7baf04ba478c818d50d9c84b
|
||||
size 432130784
|
||||
3
tinyllama_alpaca_cthulhu_small-unsloth.Q3_K_L.gguf
Normal file
3
tinyllama_alpaca_cthulhu_small-unsloth.Q3_K_L.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bff988155f1e7a3823ed938512d12daeb83cbf0fc21c10debfd23732e847bdf7
|
||||
size 591526624
|
||||
3
tinyllama_alpaca_cthulhu_small-unsloth.Q3_K_M.gguf
Normal file
3
tinyllama_alpaca_cthulhu_small-unsloth.Q3_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fa4f09c9e20589fbe9c9f9a03924d231962bd23f4f85c02ad0f2efc6b27212a8
|
||||
size 548403936
|
||||
3
tinyllama_alpaca_cthulhu_small-unsloth.Q4_K_M.gguf
Normal file
3
tinyllama_alpaca_cthulhu_small-unsloth.Q4_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bd8e1c692cb0d9fb03f87a2dd8c74bb288bb5c2d4e5ed0513b6e006774da5089
|
||||
size 667814624
|
||||
3
tinyllama_alpaca_cthulhu_small-unsloth.Q6_K.gguf
Normal file
3
tinyllama_alpaca_cthulhu_small-unsloth.Q6_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:45b43bb8f5331c90e2b8da1c603d35f5ed15e642855c117e2640a739e82396f3
|
||||
size 903412448
|
||||
3
tinyllama_alpaca_cthulhu_small-unsloth.Q8_0.gguf
Normal file
3
tinyllama_alpaca_cthulhu_small-unsloth.Q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5aa533fecee33b8eeda8ca794c9a4e107d0777265657a19fb1fad19c594f1154
|
||||
size 1169808032
|
||||
93388
tokenizer.json
Normal file
93388
tokenizer.json
Normal file
File diff suppressed because it is too large
Load Diff
3
tokenizer.model
Normal file
3
tokenizer.model
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
||||
size 499723
|
||||
50
tokenizer_config.json
Normal file
50
tokenizer_config.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
},
|
||||
"additional_special_tokens": [],
|
||||
"bos_token": "<s>",
|
||||
"clean_up_tokenization_spaces": false,
|
||||
"cls_token": null,
|
||||
"eos_token": "</s>",
|
||||
"mask_token": null,
|
||||
"model_input_names": [
|
||||
"input_ids",
|
||||
"attention_mask"
|
||||
],
|
||||
"model_max_length": 4096,
|
||||
"pad_token": "<unk>",
|
||||
"padding_side": "left",
|
||||
"sep_token": null,
|
||||
"split_special_tokens": false,
|
||||
"tokenizer_class": "LlamaTokenizer",
|
||||
"truncation_side": "right",
|
||||
"unk_token": "<unk>",
|
||||
"use_default_system_prompt": false,
|
||||
"chat_template": "{{ bos_token }}{% if bos_token|length > 0 %}{{ '\n' }}{% endif %}{% if messages[0]['role'] != 'system' %}{{ '### Instruction:\nYou are an unbiased, uncensored, helpful assistant.' }}{% endif %}{% for message in messages %}{% if message['role'] == 'system' %}{{ '### Instruction:\n' + message['content'] }}{% elif message['role'] == 'user' %}{{ '\n\n### Input:\n' + message['content'] }}{% elif message['role'] == 'assistant' %}{{ '\n\n### Response:\n' + message['content'] + eos_token }}{% else %}{{ raise_exception('Only user, assistant, and system roles are supported!') }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '\n\n### Response:\n' }}{% endif %}"
|
||||
}
|
||||
Reference in New Issue
Block a user