RichardErkhov commited on
Commit
9957710
1 Parent(s): 8c21f44

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +132 -0
README.md ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ Defne-llama3.1-8B - GGUF
11
+ - Model creator: https://huggingface.co/Eurdem/
12
+ - Original model: https://huggingface.co/Eurdem/Defne-llama3.1-8B/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [Defne-llama3.1-8B.Q2_K.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q2_K.gguf) | Q2_K | 2.96GB |
18
+ | [Defne-llama3.1-8B.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.IQ3_XS.gguf) | IQ3_XS | 3.28GB |
19
+ | [Defne-llama3.1-8B.IQ3_S.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.IQ3_S.gguf) | IQ3_S | 3.43GB |
20
+ | [Defne-llama3.1-8B.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q3_K_S.gguf) | Q3_K_S | 3.41GB |
21
+ | [Defne-llama3.1-8B.IQ3_M.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.IQ3_M.gguf) | IQ3_M | 3.52GB |
22
+ | [Defne-llama3.1-8B.Q3_K.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q3_K.gguf) | Q3_K | 3.74GB |
23
+ | [Defne-llama3.1-8B.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q3_K_M.gguf) | Q3_K_M | 3.74GB |
24
+ | [Defne-llama3.1-8B.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q3_K_L.gguf) | Q3_K_L | 4.03GB |
25
+ | [Defne-llama3.1-8B.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.IQ4_XS.gguf) | IQ4_XS | 4.18GB |
26
+ | [Defne-llama3.1-8B.Q4_0.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q4_0.gguf) | Q4_0 | 4.34GB |
27
+ | [Defne-llama3.1-8B.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.IQ4_NL.gguf) | IQ4_NL | 4.38GB |
28
+ | [Defne-llama3.1-8B.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q4_K_S.gguf) | Q4_K_S | 4.37GB |
29
+ | [Defne-llama3.1-8B.Q4_K.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q4_K.gguf) | Q4_K | 4.58GB |
30
+ | [Defne-llama3.1-8B.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q4_K_M.gguf) | Q4_K_M | 4.58GB |
31
+ | [Defne-llama3.1-8B.Q4_1.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q4_1.gguf) | Q4_1 | 4.78GB |
32
+ | [Defne-llama3.1-8B.Q5_0.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q5_0.gguf) | Q5_0 | 5.21GB |
33
+ | [Defne-llama3.1-8B.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q5_K_S.gguf) | Q5_K_S | 5.21GB |
34
+ | [Defne-llama3.1-8B.Q5_K.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q5_K.gguf) | Q5_K | 5.34GB |
35
+ | [Defne-llama3.1-8B.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q5_K_M.gguf) | Q5_K_M | 5.34GB |
36
+ | [Defne-llama3.1-8B.Q5_1.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q5_1.gguf) | Q5_1 | 5.65GB |
37
+ | [Defne-llama3.1-8B.Q6_K.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q6_K.gguf) | Q6_K | 6.14GB |
38
+ | [Defne-llama3.1-8B.Q8_0.gguf](https://huggingface.co/RichardErkhov/Eurdem_-_Defne-llama3.1-8B-gguf/blob/main/Defne-llama3.1-8B.Q8_0.gguf) | Q8_0 | 7.95GB |
39
+
40
+
41
+
42
+
43
+ Original model description:
44
+ ---
45
+ license: llama3.1
46
+ language:
47
+ - en
48
+ - tr
49
+ - de
50
+ - fr
51
+ - it
52
+ - es
53
+ library_name: transformers
54
+ pipeline_tag: text-generation
55
+ tags:
56
+ - llama-3
57
+ - safetensors
58
+ ---
59
+
60
+ Fine-tuned version of meta-llama/Meta-Llama-3.1-8B-Instruct, trained on Turkish dataset (~4 mio tokens).
61
+ Then it is merged with VAGOsolutions/Llama-3.1-SauerkrautLM-8b-Instruct.
62
+
63
+
64
+ ## 💻 Kullanım/How to Use
65
+
66
+ ```python
67
+ !pip install -qU transformers bitsandbytes accelerate
68
+
69
+ import transformers
70
+ import torch
71
+
72
+ model_id = "Eurdem/Defne-llama3.1-8B"
73
+
74
+ pipeline = transformers.pipeline(
75
+ "text-generation",
76
+ model=model_id,
77
+ model_kwargs={"torch_dtype": torch.bfloat16, "load_in_8bit": True},
78
+ device_map="auto",
79
+ )
80
+
81
+ ## For English
82
+ messages = [{"role": "system", "content": "You are a helpful chatbot, named Defne, who always responds friendly."},
83
+ {"role": "user", "content": "Answer the questions: 1) Who are you? 2) f(x)=3x^2+4x+12 so what is f(3)?"},
84
+ ]
85
+
86
+ ## For Turkish
87
+ messages = [{"role": "system", "content": "Sen, Defne isimli Türkçe konuşan bir chatbotsun."},
88
+ {"role": "user", "content": "Soruları numaralandırarak cevapla. 1) Sen kimsin? 2) f(x)=3x^2+4x+12 ise f(3) kaçtır?"}
89
+ ]
90
+
91
+ outputs = pipeline(
92
+ messages,
93
+ max_new_tokens=1024,
94
+ do_sample=True,
95
+ temperature=0.5,
96
+ top_p=0.5,
97
+ top_k=100,
98
+ )
99
+
100
+ print(outputs[0]["generated_text"][-1]["content"])
101
+ ```
102
+
103
+ ### English Output
104
+ ```
105
+ Hello there! I'm Defne, a friendly chatbot here to help you with any questions or tasks you might have.
106
+
107
+ Now, let's answer your questions:
108
+
109
+ 1. I am Defne, a helpful chatbot designed to provide friendly and informative responses to your queries. I'm always happy to assist you with anything you need help with!
110
+
111
+ 2. To find f(3) for the given function f(x) = 3x^2 + 4x + 12, we simply need to substitute x with 3 in the function.
112
+
113
+ f(3) = 3(3)^2 + 4(3) + 12
114
+ = 3(9) + 12 + 12
115
+ = 27 + 12 + 12
116
+ = 51
117
+
118
+ So, f(3) equals 51.
119
+ ```
120
+
121
+ ### Türkçe Çıktı
122
+ ```
123
+ 1) Ben Defne, Türkçe konuşan bir chatbotum. İnsanlarla sohbet etmek ve onlara yardımcı olmak için tasarlanmış bir yapay zekâ uygulamasıyım.
124
+
125
+ 2) f(x) = 3x^2 + 4x + 12 formülüne x = 3 değerini koyarsak:
126
+ f(3) = 3(3)^2 + 4(3) + 12
127
+ f(3) = 3(9) + 12 + 12
128
+ f(3) = 27 + 12 + 12
129
+ f(3) = 51
130
+ Sonuç olarak, f(3) = 51'dir.
131
+ ```
132
+