Upload folder using huggingface_hub
Browse files- .gitattributes +14 -0
- README.md +94 -0
- litellama-460m-1t.Q2_K.gguf +3 -0
- litellama-460m-1t.Q3_K_L.gguf +3 -0
- litellama-460m-1t.Q3_K_M.gguf +3 -0
- litellama-460m-1t.Q3_K_S.gguf +3 -0
- litellama-460m-1t.Q4_0.gguf +3 -0
- litellama-460m-1t.Q4_1.gguf +3 -0
- litellama-460m-1t.Q4_K_M.gguf +3 -0
- litellama-460m-1t.Q4_K_S.gguf +3 -0
- litellama-460m-1t.Q5_0.gguf +3 -0
- litellama-460m-1t.Q5_1.gguf +3 -0
- litellama-460m-1t.Q5_K_M.gguf +3 -0
- litellama-460m-1t.Q5_K_S.gguf +3 -0
- litellama-460m-1t.Q6_K.gguf +3 -0
- litellama-460m-1t.Q8_0.gguf +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,17 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
litellama-460m-1t.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
litellama-460m-1t.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
38 |
+
litellama-460m-1t.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
39 |
+
litellama-460m-1t.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
40 |
+
litellama-460m-1t.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
41 |
+
litellama-460m-1t.Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
|
42 |
+
litellama-460m-1t.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
43 |
+
litellama-460m-1t.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
44 |
+
litellama-460m-1t.Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
45 |
+
litellama-460m-1t.Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
|
46 |
+
litellama-460m-1t.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
47 |
+
litellama-460m-1t.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
48 |
+
litellama-460m-1t.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
49 |
+
litellama-460m-1t.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: "LiteLlama-460M-1T Quantized in GGUF"
|
3 |
+
tags:
|
4 |
+
- GGUF
|
5 |
+
language: en
|
6 |
+
---
|
7 |
+

|
8 |
+
|
9 |
+
# Tsunemoto GGUF's of LiteLlama-460M-1T
|
10 |
+
|
11 |
+
This is a GGUF quantization of LiteLlama-460M-1T.
|
12 |
+
|
13 |
+
## Original Repo Link:
|
14 |
+
[Original Repository](https://huggingface.co/ahxt/LiteLlama-460M-1T)
|
15 |
+
|
16 |
+
## Original Model Card:
|
17 |
+
---
|
18 |
+
|
19 |
+
# LiteLlama: Reduced-Scale Llama
|
20 |
+
|
21 |
+
In this series of repos, we present an open-source reproduction of Meta AI's [LLaMa 2](https://ai.meta.com/llama/). However, with significantly reduced model sizes, [LiteLlama-460M-1T](https://huggingface.co/ahxt/LiteLlama-460M-1T) has 460M parameters trained with 1T tokens.
|
22 |
+
|
23 |
+
|
24 |
+
## Dataset and Tokenization
|
25 |
+
We train our models on part of [RedPajama](https://www.together.xyz/blog/redpajama) dataset. We use the [GPT2Tokenizer](https://huggingface.co/docs/transformers/v4.31.0/en/model_doc/gpt2#transformers.GPT2Tokenizer) to tokenize the text.
|
26 |
+
|
27 |
+
## Training Details
|
28 |
+
|
29 |
+
The model was trained with ~1T tokens (0.98T). num of tokens = steps*length*batch_size=499679*1024*192=98240888832≈0.98T.
|
30 |
+
|
31 |
+
The training curve is at this [WandB project](https://wandb.ai/ahxt/llama2_xs_460M_training_loss/reports/reduced_train_loss-23-09-05-20-25-43---Vmlldzo1MzIwNDUx?accessToken=x2ch3n30jo77p1x8y7q9js4h4d8zpjtz1tzot4xxullyefixp4jwt7au2q37k2q6).
|
32 |
+
|
33 |
+
### Using with HuggingFace Transformers
|
34 |
+
The experimental checkpoints can be directly loaded by [Transformers](https://huggingface.co/transformers/) library. The following code snippet shows how to load the our experimental model and generate text with it.
|
35 |
+
|
36 |
+
|
37 |
+
```python
|
38 |
+
import torch
|
39 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
40 |
+
|
41 |
+
model_path = 'ahxt/LiteLlama-460M-1T'
|
42 |
+
|
43 |
+
model = AutoModelForCausalLM.from_pretrained(model_path)
|
44 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
45 |
+
model.eval()
|
46 |
+
|
47 |
+
prompt = 'Q: What is the largest bird?\nA:'
|
48 |
+
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
|
49 |
+
tokens = model.generate(input_ids, max_length=20)
|
50 |
+
print( tokenizer.decode(tokens[0].tolist(), skip_special_tokens=True) )
|
51 |
+
# Q: What is the largest bird?\nA: The largest bird is a black-headed gull.
|
52 |
+
```
|
53 |
+
|
54 |
+
## Evaluation
|
55 |
+
|
56 |
+
### We evaluate our models on the MMLU task.
|
57 |
+
|
58 |
+
| Models | #parameters |zero-shot | 5-shot |
|
59 |
+
| --- | --- | --- | --- |
|
60 |
+
| llama | 7B | 28.46 | 35.05 |
|
61 |
+
| openllama | 3B | 24.90 | 26.71 |
|
62 |
+
|TinyLlama-1.1B-step-50K-105b | 1.1B | 19.00 | 26.53 |
|
63 |
+
| LiteLlama-460M-1T | 0.46B | 21.13 | 26.39 |
|
64 |
+
|
65 |
+
|
66 |
+
### [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
67 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_ahxt__llama2_xs_460M_experimental)
|
68 |
+
|
69 |
+
| Metric | Value |
|
70 |
+
|-----------------------|---------------------------|
|
71 |
+
| Avg. | 26.65 |
|
72 |
+
| ARC (25-shot) | 24.91 |
|
73 |
+
| HellaSwag (10-shot) | 38.47 |
|
74 |
+
| MMLU (5-shot) | 26.17 |
|
75 |
+
| TruthfulQA (0-shot) | 41.59 |
|
76 |
+
| Winogrande (5-shot) | 49.88 |
|
77 |
+
| GSM8K (5-shot) | 0.0 |
|
78 |
+
| DROP (3-shot) | 5.51 |
|
79 |
+
|
80 |
+
|
81 |
+
|
82 |
+
|
83 |
+
## Contact
|
84 |
+
This model is developed by [Xiaotian Han](https://ahxt.github.io/) from Texas A&M University and released under MIT License.
|
85 |
+
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
|
litellama-460m-1t.Q2_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4df2c243ab62c742f9941dcb378655d2db0e90b4058891b1b757884ebd9aba99
|
3 |
+
size 212556704
|
litellama-460m-1t.Q3_K_L.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f6e5192eda541ebce4dee33f5bd45aeba85ce1031f91fdd3479dea8e6bd3c771
|
3 |
+
size 253915040
|
litellama-460m-1t.Q3_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:432afbc3897a1264b205a08c9cab199477e7440944dc56bb914850f51188ffaa
|
3 |
+
size 238874528
|
litellama-460m-1t.Q3_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:50d504e11ccf5a27653a0a0b0bace60f6e38d2dc2935a96b28bf60a6505408f4
|
3 |
+
size 220663712
|
litellama-460m-1t.Q4_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ffacfd8f63dcac9801d495b925235a7533987560373f6dbae4890814667ad71d
|
3 |
+
size 275133344
|
litellama-460m-1t.Q4_1.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fc0e665f9d8bf3aa57de0173a7d910d3b92b5c3148d44772d1f6c0fb2063bb31
|
3 |
+
size 300766112
|
litellama-460m-1t.Q4_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:757cc33f6be269ddec86719b1ef048949d21e1350391230491e09f37e107218e
|
3 |
+
size 288514976
|
litellama-460m-1t.Q4_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f2be63fb6fb05196f810601c54dd90c2ff1ab41327af69f8a6971f018500b834
|
3 |
+
size 277296032
|
litellama-460m-1t.Q5_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b33ac7bc14a8a30db496b9074b36f54cbf0f8e354ddbe92e77a703aeac41c489
|
3 |
+
size 326398880
|
litellama-460m-1t.Q5_1.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6bd20e428d5db71d3514ede35a94e1d345f31f34426d910e324ebc1dd1a8a2e4
|
3 |
+
size 352031648
|
litellama-460m-1t.Q5_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1fa433eb921db3b85881dc18ed434ae2949c9ab83ee1408986d5f5a332641fd3
|
3 |
+
size 333292448
|
litellama-460m-1t.Q5_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a4b21138a3a405320300c759d2359434eb8ce427f2c6a7394e32f71214f1a868
|
3 |
+
size 326398880
|
litellama-460m-1t.Q6_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:539f5cbead5fc22ff716cdd21a7369a8705272fc3218596b73cf03ab724aa5ea
|
3 |
+
size 380868512
|
litellama-460m-1t.Q8_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:252750d4bccaad5f578437a478b7010a84d34fa48124ef51d4373dfb152e9273
|
3 |
+
size 492670880
|