commit 4cb1c9f3ca5fcf9cc2f23169c60e5e9a13e6d80d Author: ModelHub XC Date: Sat Apr 11 09:58:56 2026 +0800 初始化项目,由ModelHub XC社区提供模型 Model: afrideva/TinyLlama-1.1B-Chat-v0.5-GGUF Source: Original Platform diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..215300e --- /dev/null +++ b/.gitattributes @@ -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-1.1b-chat-v0.5.fp16.gguf filter=lfs diff=lfs merge=lfs -text +tinyllama-1.1b-chat-v0.5.q2_k.gguf filter=lfs diff=lfs merge=lfs -text +tinyllama-1.1b-chat-v0.5.q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text +tinyllama-1.1b-chat-v0.5.q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text +tinyllama-1.1b-chat-v0.5.q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text +tinyllama-1.1b-chat-v0.5.q6_k.gguf filter=lfs diff=lfs merge=lfs -text +tinyllama-1.1b-chat-v0.5.q8_0.gguf filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000..84af44c --- /dev/null +++ b/README.md @@ -0,0 +1,95 @@ +--- +base_model: TinyLlama/TinyLlama-1.1B-Chat-v0.5 +datasets: +- cerebras/SlimPajama-627B +- bigcode/starcoderdata +- OpenAssistant/oasst_top1_2023-08-25 +inference: false +language: +- en +license: apache-2.0 +model_creator: TinyLlama +model_name: TinyLlama-1.1B-Chat-v0.5 +pipeline_tag: text-generation +quantized_by: afrideva +tags: +- gguf +- ggml +- quantized +- q2_k +- q3_k_m +- q4_k_m +- q5_k_m +- q6_k +- q8_0 +--- +# TinyLlama/TinyLlama-1.1B-Chat-v0.5-GGUF + +Quantized GGUF model files for [TinyLlama-1.1B-Chat-v0.5](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v0.5) from [TinyLlama](https://huggingface.co/TinyLlama) + + +| Name | Quant method | Size | +| ---- | ---- | ---- | +| [tinyllama-1.1b-chat-v0.5.q2_k.gguf](https://huggingface.co/afrideva/TinyLlama-1.1B-Chat-v0.5-GGUF/resolve/main/tinyllama-1.1b-chat-v0.5.q2_k.gguf) | q2_k | 482.15 MB | +| [tinyllama-1.1b-chat-v0.5.q3_k_m.gguf](https://huggingface.co/afrideva/TinyLlama-1.1B-Chat-v0.5-GGUF/resolve/main/tinyllama-1.1b-chat-v0.5.q3_k_m.gguf) | q3_k_m | 549.85 MB | +| [tinyllama-1.1b-chat-v0.5.q4_k_m.gguf](https://huggingface.co/afrideva/TinyLlama-1.1B-Chat-v0.5-GGUF/resolve/main/tinyllama-1.1b-chat-v0.5.q4_k_m.gguf) | q4_k_m | 667.82 MB | +| [tinyllama-1.1b-chat-v0.5.q5_k_m.gguf](https://huggingface.co/afrideva/TinyLlama-1.1B-Chat-v0.5-GGUF/resolve/main/tinyllama-1.1b-chat-v0.5.q5_k_m.gguf) | q5_k_m | 782.05 MB | +| [tinyllama-1.1b-chat-v0.5.q6_k.gguf](https://huggingface.co/afrideva/TinyLlama-1.1B-Chat-v0.5-GGUF/resolve/main/tinyllama-1.1b-chat-v0.5.q6_k.gguf) | q6_k | 903.42 MB | +| [tinyllama-1.1b-chat-v0.5.q8_0.gguf](https://huggingface.co/afrideva/TinyLlama-1.1B-Chat-v0.5-GGUF/resolve/main/tinyllama-1.1b-chat-v0.5.q8_0.gguf) | q8_0 | 1.17 GB | + + + +## Original Model Card: +
+ +# TinyLlama-1.1B +
+ +https://github.com/jzhang38/TinyLlama + +The TinyLlama project aims to **pretrain** a **1.1B Llama model on 3 trillion tokens**. With some proper optimization, we can achieve this within a span of "just" 90 days using 16 A100-40G GPUs 🚀🚀. The training has started on 2023-09-01. + + +We adopted exactly the same architecture and tokenizer as Llama 2. This means TinyLlama can be plugged and played in many open-source projects built upon Llama. Besides, TinyLlama is compact with only 1.1B parameters. This compactness allows it to cater to a multitude of applications demanding a restricted computation and memory footprint. + +#### This Model +This is the chat model finetuned on top of [TinyLlama/TinyLlama-1.1B-intermediate-step-955k-2T](https://huggingface.co/TinyLlama/TinyLlama-1.1B-intermediate-step-955k-token-2T). +The dataset used is [OpenAssistant/oasst_top1_2023-08-25](https://huggingface.co/datasets/OpenAssistant/oasst_top1_2023-08-25) following the [chatml](https://github.com/openai/openai-python/blob/main/chatml.md) format. +#### How to use +You will need the transformers>=4.31 +Do check the [TinyLlama](https://github.com/jzhang38/TinyLlama) github page for more information. +``` +from transformers import AutoTokenizer +import transformers +import torch +model = "PY007/TinyLlama-1.1B-Chat-v0.5" +tokenizer = AutoTokenizer.from_pretrained(model) +pipeline = transformers.pipeline( + "text-generation", + model=model, + torch_dtype=torch.float16, + device_map="auto", +) + +CHAT_EOS_TOKEN_ID = 32002 + +prompt = "How to get in a good university?" +formatted_prompt = ( + f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n" +) + + +sequences = pipeline( + formatted_prompt, + do_sample=True, + top_k=50, + top_p = 0.9, + num_return_sequences=1, + repetition_penalty=1.1, + max_new_tokens=1024, + eos_token_id=CHAT_EOS_TOKEN_ID, +) + +for seq in sequences: + print(f"Result: {seq['generated_text']}") +``` \ No newline at end of file diff --git a/tinyllama-1.1b-chat-v0.5.fp16.gguf b/tinyllama-1.1b-chat-v0.5.fp16.gguf new file mode 100644 index 0000000..1517086 --- /dev/null +++ b/tinyllama-1.1b-chat-v0.5.fp16.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:39a29962baa01e4067fad84108d1cd4c6b5a49a7004a2a165bc1030603a78f16 +size 2201041408 diff --git a/tinyllama-1.1b-chat-v0.5.q2_k.gguf b/tinyllama-1.1b-chat-v0.5.q2_k.gguf new file mode 100644 index 0000000..6ad7b13 --- /dev/null +++ b/tinyllama-1.1b-chat-v0.5.q2_k.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2c5a022ed512f871ffc3959bac653935e9582e311a92d178ab4443572855812 +size 482149824 diff --git a/tinyllama-1.1b-chat-v0.5.q3_k_m.gguf b/tinyllama-1.1b-chat-v0.5.q3_k_m.gguf new file mode 100644 index 0000000..b39f979 --- /dev/null +++ b/tinyllama-1.1b-chat-v0.5.q3_k_m.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49309edeac5dd77a4672778d4a43f04ff4866aa4c561b37421ee3ccdd0e1045d +size 549853248 diff --git a/tinyllama-1.1b-chat-v0.5.q4_k_m.gguf b/tinyllama-1.1b-chat-v0.5.q4_k_m.gguf new file mode 100644 index 0000000..aa5722d --- /dev/null +++ b/tinyllama-1.1b-chat-v0.5.q4_k_m.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c769750679113929d5613799fa682705d6d46a8124123199a0c696c2ecf4c75 +size 667822944 diff --git a/tinyllama-1.1b-chat-v0.5.q5_k_m.gguf b/tinyllama-1.1b-chat-v0.5.q5_k_m.gguf new file mode 100644 index 0000000..e667af9 --- /dev/null +++ b/tinyllama-1.1b-chat-v0.5.q5_k_m.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:818d564c477ef9d6ddf20c05aabecd961a5d2f9c1bc5e51e5770a0c35bc49568 +size 782052960 diff --git a/tinyllama-1.1b-chat-v0.5.q6_k.gguf b/tinyllama-1.1b-chat-v0.5.q6_k.gguf new file mode 100644 index 0000000..1147e24 --- /dev/null +++ b/tinyllama-1.1b-chat-v0.5.q6_k.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73c43e5fcf0209c9db0d0c6ba892e10db940f5d10e5bcce2b79b5a1edb3adcc6 +size 903422368 diff --git a/tinyllama-1.1b-chat-v0.5.q8_0.gguf b/tinyllama-1.1b-chat-v0.5.q8_0.gguf new file mode 100644 index 0000000..5522321 --- /dev/null +++ b/tinyllama-1.1b-chat-v0.5.q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30a17acdbc16d2867aa41d345bf4e64fbb089f7284575d037be947f5071b3bf4 +size 1169820960