tsunemoto commited on
Commit
937020e
1 Parent(s): 47519ac

Upload folder using huggingface_hub

Browse files
.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
+ heimer-kto-tinyllama-1.1b.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
37
+ heimer-kto-tinyllama-1.1b.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
38
+ heimer-kto-tinyllama-1.1b.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ heimer-kto-tinyllama-1.1b.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ heimer-kto-tinyllama-1.1b.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
41
+ heimer-kto-tinyllama-1.1b.Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
42
+ heimer-kto-tinyllama-1.1b.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ heimer-kto-tinyllama-1.1b.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ heimer-kto-tinyllama-1.1b.Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
45
+ heimer-kto-tinyllama-1.1b.Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
46
+ heimer-kto-tinyllama-1.1b.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
47
+ heimer-kto-tinyllama-1.1b.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
48
+ heimer-kto-tinyllama-1.1b.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ heimer-kto-tinyllama-1.1b.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: "Heimer-kto-TinyLlama-1.1B Quantized in GGUF"
3
+ tags:
4
+ - GGUF
5
+ language: en
6
+ ---
7
+ ![Image description](https://i.postimg.cc/MGwhtFfF/tsune-fixed.png)
8
+
9
+ # Tsunemoto GGUF's of Heimer-kto-TinyLlama-1.1B
10
+
11
+ This is a GGUF quantization of Heimer-kto-TinyLlama-1.1B.
12
+
13
+ ## Original Repo Link:
14
+ [Original Repository](https://huggingface.co/abideen/Heimer-kto-TinyLlama-1.1B)
15
+
16
+ ## Original Model Card:
17
+ ---
18
+
19
+ # Heimer-kto-TinyLlama-1.1B
20
+
21
+
22
+ ![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/64e380b2e12618b261fa6ba0/a7joKICVpqGElN3mh2MpS.jpeg)
23
+
24
+
25
+ # WandB Experiment Tracking
26
+
27
+ Check out the experiment details in this [report](https://api.wandb.ai/links/zaiinn440/dqlt70dc)
28
+
29
+
30
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/64e380b2e12618b261fa6ba0/HLhrSUFD1-e6f31F3WGK2.png)
31
+
32
+ # 🧩 KTO adaptation hyperparameters
33
+
34
+ ## LoRA:
35
+
36
+ r=8
37
+
38
+ lora_alpha=16
39
+
40
+ lora_dropout=0.05
41
+
42
+ bias="none"
43
+
44
+ task_type="CAUSAL_LM"
45
+
46
+ target_modules=['k_proj', 'gate_proj', 'v_proj', 'up_proj', 'q_proj', 'o_proj', 'down_proj']
47
+
48
+ ## Training arguments:
49
+
50
+ per_device_train_batch_size=2
51
+
52
+ gradient_accumulation_steps=4
53
+
54
+ gradient_checkpointing=True
55
+
56
+ learning_rate=5e-5
57
+
58
+ lr_scheduler_type="cosine"
59
+
60
+ max_steps=50
61
+
62
+ optim="paged_adamw_32bit"
63
+
64
+ warmup_steps=10
65
+
66
+ ## DPOTrainer:
67
+
68
+ beta=0.1
69
+
70
+ max_prompt_length=1024
71
+
72
+ max_length=1536
73
+
74
+ loss="kto_pairs"
75
+
76
+
77
+ ## 💻 Usage
78
+
79
+ Here's a [Colab notebook](https://colab.research.google.com/drive/11KEX1LG3nRBoeGR0Iyy-459XllGlLOA9?usp=sharing) to run Heimer-TinyLLama-1.1B in 4-bit precision on a free T4 GPU.
80
+
81
+ ```python
82
+ !pip install -qU transformers accelerate
83
+
84
+ from transformers import AutoTokenizer
85
+ import transformers
86
+ import torch
87
+
88
+ model = "abideen/Heimer-dpo-TinyLlama-1.1B"
89
+ messages = [{"role": "user", "content": "Explain what is Data science."}]
90
+
91
+ tokenizer = AutoTokenizer.from_pretrained(model)
92
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
93
+ pipeline = transformers.pipeline(
94
+ "text-generation",
95
+ model=model,
96
+ torch_dtype=torch.float16,
97
+ device_map="auto",
98
+ )
99
+
100
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
101
+ print(outputs[0]["generated_text"])
102
+ ```
103
+
104
+ "What is Data Science?
105
+ A data scientist is an individual who has a passion for data and knowledge of the technology that can be used to help make sense of data. Data scientists are often involved in the development of new software and software platforms, as well as analyzing and interpreting data.
106
+ What are the Important components of Data Science?
107
+ 1. Data: The data is the most important component of a data science project. Data science is the application of data science to make sense of data. Data scientists usually work with data, but data scientists are not necessarily data scientists.
108
+ 2. Analysis: This is the process of taking data and turning it into something useful.
109
+ 3. Modeling: The use of machine learning and statistical techniques.
110
+ 4. Prediction: The prediction of a future event, such as the future market share of a product or the future population of an area.
111
+ 5. Visualization: Displaying the data in a graphical or interactive format.
112
+ 6. Statistics: The use of statistical analysis techniques.
113
+ What are the Advantages of Data Science?
114
+ Data science is the application of data science to make sense of data."
heimer-kto-tinyllama-1.1b.Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97931434b082eb907a5836c994613b7f05475ee46fc649c0c17c9192d4fd71f0
3
+ size 483115904
heimer-kto-tinyllama-1.1b.Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db27832f7b0458f8ecf0a3d3d1d487053597c6d1cf5b575867de0ec128deb2b1
3
+ size 592499584
heimer-kto-tinyllama-1.1b.Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6ab77e970980c4cac565e1648060264ff229352e4d8780dd49ea0ab0347c1c6
3
+ size 550818688
heimer-kto-tinyllama-1.1b.Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7aed842d2e8f2dbd75f738737d6685740516a456477379ca991297a5bcdf5212
3
+ size 500315008
heimer-kto-tinyllama-1.1b.Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c92711813e316460636b628413440df7f76c6e9993147448e904488cbbc6c893
3
+ size 637698944
heimer-kto-tinyllama-1.1b.Q4_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af8ce0e1e9ca0b878dcc38fc3edb9c4833ce9ec827ffc3ac08f6b5b5124e3f22
3
+ size 702350208
heimer-kto-tinyllama-1.1b.Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a053b9b88c43a54a4ac28ff43c7abca9859efe2206c48d52cf44bf3fd87c691
3
+ size 668787584
heimer-kto-tinyllama-1.1b.Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:661947c7938ef112a70bfe26ab208e1548317fd33a50ca5a28845a6b1548dac7
3
+ size 643728256
heimer-kto-tinyllama-1.1b.Q5_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f44156b57eec9cab46d5886f9d2e05007dd57baa3c22801aa8071a65b0d1f69
3
+ size 767001472
heimer-kto-tinyllama-1.1b.Q5_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0d870921e1773b188bbfb460f23fe87dcdfd83c266889b1d37ae70e6cef1ec3
3
+ size 831652736
heimer-kto-tinyllama-1.1b.Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57582645c318f41a015ea5b766f77bdd3c5bcc63736920d658ec167d4c980d37
3
+ size 783016832
heimer-kto-tinyllama-1.1b.Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d44af38cb044998bbf7c123134946236e367ce8407efa7bfcc027f1147d310a
3
+ size 767001472
heimer-kto-tinyllama-1.1b.Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3097aa5efff9872101dc88cff4cca70abb2c84c89ba7bd5cd36128d021038235
3
+ size 904385408
heimer-kto-tinyllama-1.1b.Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:721026550616cc1e777c2a6c27a3f47040f650fab000a736c6ab9ac1b7b3d652
3
+ size 1170781056