From c0282584a0f4cf81af3da86f44d8e4db1c016ecb Mon Sep 17 00:00:00 2001 From: ModelHub XC Date: Fri, 5 Jun 2026 01:20:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=EF=BC=8C=E7=94=B1ModelHub=20XC=E7=A4=BE=E5=8C=BA=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Model: Josephgflowers/TinyLlama-3T-Cinder-v1.2 Source: Original Platform --- .gitattributes | 49 ++++++++ README.md | 182 +++++++++++++++++++++++++++++ TinyLlama-3T-Cinder-v1.2.Q8_0.gguf | 3 + TinyLlama-3T-Cinder-v1.Q8_0.gguf | 3 + config.json | 28 +++++ configuration.json | 1 + generation_config.json | 7 ++ model.safetensors | 3 + optimizer.pt | 3 + rng_state.pth | 3 + scheduler.pt | 3 + special_tokens_map.json | 30 +++++ tokenizer.json | 3 + tokenizer_config.json | 42 +++++++ training_args.bin | 3 + 15 files changed, 363 insertions(+) create mode 100644 .gitattributes create mode 100644 README.md create mode 100644 TinyLlama-3T-Cinder-v1.2.Q8_0.gguf create mode 100644 TinyLlama-3T-Cinder-v1.Q8_0.gguf create mode 100644 config.json create mode 100644 configuration.json create mode 100644 generation_config.json create mode 100644 model.safetensors create mode 100644 optimizer.pt create mode 100644 rng_state.pth create mode 100644 scheduler.pt create mode 100644 special_tokens_map.json create mode 100644 tokenizer.json create mode 100644 tokenizer_config.json create mode 100644 training_args.bin diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..21b3632 --- /dev/null +++ b/.gitattributes @@ -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 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..936607c --- /dev/null +++ b/README.md @@ -0,0 +1,182 @@ +--- +license: mit +widget: +- text: '<|system|> + + You are a helpful assistant + + <|user|> + + Tell me about yourself, what is your name?. + + <|assistant|> + + ' +model-index: +- name: TinyLlama-3T-Cinder-v1.1 + 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: 34.04 + name: normalized accuracy + source: + url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Josephgflowers/TinyLlama-3T-Cinder-v1.1 + 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: 50.4 + name: normalized accuracy + source: + url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Josephgflowers/TinyLlama-3T-Cinder-v1.1 + 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: 25.75 + name: accuracy + source: + url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Josephgflowers/TinyLlama-3T-Cinder-v1.1 + 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: 37.57 + source: + url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Josephgflowers/TinyLlama-3T-Cinder-v1.1 + 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: 56.43 + name: accuracy + source: + url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Josephgflowers/TinyLlama-3T-Cinder-v1.1 + 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-3T-Cinder-v1.1 + name: Open LLM Leaderboard +--- +Model Card for Cinder +Model Name: Cinder + +![image/png](https://cdn-uploads.huggingface.co/production/uploads/6328952f798f8d122ce62a44/_5ihlDZflgdA0Em76t5j9.png) + +Created by: Joseph Flowers +***Updated 1-10-24*** New round of training, added gguf model 8bit. +Model Overview +Cinder is an AI chatbot tailored for engaging users in scientific and educational conversations, offering companionship, and sparking imaginative exploration. It is built on the TinyLlama 1.1B parameter model and trained on a unique combination of datasets. + +Development Details (Still in development) +Model Architecture: TinyLlama 1.1B (based on the 3T checkpoint) https://huggingface.co/TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T +Training Datasets: +Interactive chats with GPT-4 where I prompt GPT4 to create chats between a User and Cinder and monitor the results. A lot of Please continue, this took around a month. Note: There are also multi character chats with Vector and Cozmo robots characters, a Computer Voice character that is a narrator, as well as other characters.. +A subset of Open Orca: https://huggingface.co/datasets/Open-Orca/OpenOrcatr +Q&A content generated by GPT-3.5 Turbo by having it read open source encyclopedias and create QA pairs. +Shortened version of Samantha by Eric Hartford https://huggingface.co/datasets/cognitivecomputations/samantha-data +OpenAssistant: https://huggingface.co/datasets/OpenAssistant/oasst_top1_2023-08-25 +***Updated 1-10-24*** Continued training with sorted Orca dataset to around 600mb for STEM related topics, generated around 100mb of STEM q and a with GPT3.5 and GPT4, +a chunk of Samantha dataset, Glaive function calling v2, and python code instruction 18k alpaca dataset, around 1GB total. +Core Influences: Inspired by the character 'Data' from Star Trek: The Next Generation, Lewis Carroll's writings, and a range of educational resources. + +Key Features +Inquisitive Scientist: Cinder shows a passion for space and STEM topics. +Quirky Educator: It makes complex concepts engaging and accessible. +Empathetic Companion: Cinder is designed to demonstrate understanding and emotional depth. +Adventurous Spacefarer: Cinder leads imaginative space adventures. +Static yet Sophisticated: While Cinder does not learn or adapt with each interaction, its design encompasses a breadth of knowledge and perspectives. + +Intended Use +Educational Tool: Enhances STEM learning across different age groups. +Companion: Provides meaningful and empathetic dialogues. +Creative Guide: Facilitates imaginative exploration in scientific contexts. + +Ethical Considerations +We emphasize ethical AI practices and the privacy of users. Cinder's development includes measures against misuse and ensures respectful, secure interactions. + +Limitations +Cinder's responses are fixed and do not adapt or learn from individual interactions. +The empathetic responses generated are algorithmic and not a substitute for human empathy. + +Future Enhancements and Collaboration +I am actively seeking feedback, suggestions, or additional datasets to enhance Cinder's capabilities. +Future updates may include more interactive educational modules and advanced empathetic response algorithms. +I encourage collaboration and contributions to expand Cinder's educational and creative reach. +If you have any suggestions or requests please leave them in the newly created discord channel. +https://discord.gg/5ebjDrnZ +### Help Here +Like my work? Want to see more? Custom request? Message me on discord: joseph.flowers.ra Donate here: https://buymeacoffee.com/josephgflowers + + +# [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-3T-Cinder-v1.1) + +| Metric |Value| +|---------------------------------|----:| +|Avg. |34.03| +|AI2 Reasoning Challenge (25-Shot)|34.04| +|HellaSwag (10-Shot) |50.40| +|MMLU (5-Shot) |25.75| +|TruthfulQA (0-shot) |37.57| +|Winogrande (5-shot) |56.43| +|GSM8k (5-shot) | 0.00| + diff --git a/TinyLlama-3T-Cinder-v1.2.Q8_0.gguf b/TinyLlama-3T-Cinder-v1.2.Q8_0.gguf new file mode 100644 index 0000000..618dca4 --- /dev/null +++ b/TinyLlama-3T-Cinder-v1.2.Q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c0a5a94e5bd3b1eb46234c467cc2e70dd70240792a8b7fbb6ede93498c86bf8 +size 1169808288 diff --git a/TinyLlama-3T-Cinder-v1.Q8_0.gguf b/TinyLlama-3T-Cinder-v1.Q8_0.gguf new file mode 100644 index 0000000..ae0974b --- /dev/null +++ b/TinyLlama-3T-Cinder-v1.Q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58beadb008997b8adff5c0baddbf9ec262cc4ab4cf75539e8900a00ddf40f0c0 +size 1169808288 diff --git a/config.json b/config.json new file mode 100644 index 0000000..abdf704 --- /dev/null +++ b/config.json @@ -0,0 +1,28 @@ +{ + "_name_or_path": "TinyLlama/TinyLlama-1.1B-Chat-v0.6", + "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": 22, + "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.36.0.dev0", + "use_cache": false, + "vocab_size": 32000 +} diff --git a/configuration.json b/configuration.json new file mode 100644 index 0000000..bbeeda1 --- /dev/null +++ b/configuration.json @@ -0,0 +1 @@ +{"framework": "pytorch", "task": "text-generation", "allow_remote": true} \ No newline at end of file diff --git a/generation_config.json b/generation_config.json new file mode 100644 index 0000000..50edab5 --- /dev/null +++ b/generation_config.json @@ -0,0 +1,7 @@ +{ + "bos_token_id": 1, + "eos_token_id": 2, + "max_length": 2048, + "pad_token_id": 0, + "transformers_version": "4.36.0.dev0" +} diff --git a/model.safetensors b/model.safetensors new file mode 100644 index 0000000..6998548 --- /dev/null +++ b/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22dda1e090abe636b2a0b7c2733debc689e0d2edbca7f19f54cf1f0871e72a52 +size 4400216536 diff --git a/optimizer.pt b/optimizer.pt new file mode 100644 index 0000000..02a016b --- /dev/null +++ b/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8240785243127852766da589323e28a9f5cf2ccace9235327b9c1dd27ad1a665 +size 3953210 diff --git a/rng_state.pth b/rng_state.pth new file mode 100644 index 0000000..0a11d85 --- /dev/null +++ b/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d138cfe3a4adf21f048848ee35837c9a757a0a3616ff7adbb45b69aac247435 +size 14244 diff --git a/scheduler.pt b/scheduler.pt new file mode 100644 index 0000000..7cd1e01 --- /dev/null +++ b/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3507044d296729f0980ef82ce4cfe6f5df116599a383c830056afa4a9b4c6af2 +size 1064 diff --git a/special_tokens_map.json b/special_tokens_map.json new file mode 100644 index 0000000..492d4b2 --- /dev/null +++ b/special_tokens_map.json @@ -0,0 +1,30 @@ +{ + "bos_token": { + "content": "", + "lstrip": false, + "normalized": false, + "rstrip": false, + "single_word": false + }, + "eos_token": { + "content": "", + "lstrip": false, + "normalized": false, + "rstrip": false, + "single_word": false + }, + "pad_token": { + "content": "", + "lstrip": false, + "normalized": false, + "rstrip": false, + "single_word": false + }, + "unk_token": { + "content": "", + "lstrip": false, + "normalized": false, + "rstrip": false, + "single_word": false + } +} diff --git a/tokenizer.json b/tokenizer.json new file mode 100644 index 0000000..21779d6 --- /dev/null +++ b/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bcd04f0eadf90287bd26e1a183ac487d8a141b09b06aecb7725bbdd343640f2e +size 1842767 diff --git a/tokenizer_config.json b/tokenizer_config.json new file mode 100644 index 0000000..d7e78de --- /dev/null +++ b/tokenizer_config.json @@ -0,0 +1,42 @@ +{ + "add_bos_token": true, + "add_eos_token": false, + "added_tokens_decoder": { + "0": { + "content": "", + "lstrip": false, + "normalized": false, + "rstrip": false, + "single_word": false, + "special": true + }, + "1": { + "content": "", + "lstrip": false, + "normalized": false, + "rstrip": false, + "single_word": false, + "special": true + }, + "2": { + "content": "", + "lstrip": false, + "normalized": false, + "rstrip": false, + "single_word": false, + "special": true + } + }, + "bos_token": "", + "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": "", + "legacy": false, + "model_max_length": 2048, + "pad_token": "", + "padding_side": "right", + "sp_model_kwargs": {}, + "tokenizer_class": "LlamaTokenizer", + "unk_token": "", + "use_default_system_prompt": false +} diff --git a/training_args.bin b/training_args.bin new file mode 100644 index 0000000..fb3f8ce --- /dev/null +++ b/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5064f9301cc93a637993fef98d938aa2844059453c7f4f852f7579990204c60 +size 4664