Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| Llama-2-13b-chat-tr.Q2_K.gguf | Q2_K | 4.52GB |
| Llama-2-13b-chat-tr.Q3_K_S.gguf | Q3_K_S | 5.27GB |
| Llama-2-13b-chat-tr.Q3_K.gguf | Q3_K | 5.9GB |
| Llama-2-13b-chat-tr.Q3_K_M.gguf | Q3_K_M | 5.9GB |
| Llama-2-13b-chat-tr.Q3_K_L.gguf | Q3_K_L | 6.45GB |
| Llama-2-13b-chat-tr.IQ4_XS.gguf | IQ4_XS | 6.54GB |
| Llama-2-13b-chat-tr.Q4_0.gguf | Q4_0 | 6.86GB |
| Llama-2-13b-chat-tr.IQ4_NL.gguf | IQ4_NL | 6.9GB |
| Llama-2-13b-chat-tr.Q4_K_S.gguf | Q4_K_S | 5.54GB |
| Llama-2-13b-chat-tr.Q4_K.gguf | Q4_K | 7.33GB |
| Llama-2-13b-chat-tr.Q4_K_M.gguf | Q4_K_M | 2.53GB |
| Llama-2-13b-chat-tr.Q4_1.gguf | Q4_1 | 5.42GB |
| Llama-2-13b-chat-tr.Q5_0.gguf | Q5_0 | 8.36GB |
| Llama-2-13b-chat-tr.Q5_K_S.gguf | Q5_K_S | 2.62GB |
| Llama-2-13b-chat-tr.Q5_K.gguf | Q5_K | 1.76GB |
| Llama-2-13b-chat-tr.Q5_K_M.gguf | Q5_K_M | 5.09GB |
| Llama-2-13b-chat-tr.Q5_1.gguf | Q5_1 | 8.89GB |
| Llama-2-13b-chat-tr.Q6_K.gguf | Q6_K | 9.95GB |
| Llama-2-13b-chat-tr.Q8_0.gguf | Q8_0 | 12.88GB |
databricks-dolly-15k-tr
Mohamad Alhajarmeta-llama/Llama-2-13b-hf<s>[INST] <prompt> [/INST] 1from transformers import AutoTokenizer,AutoModelForCausalLM
2
3model_id = "malhajar/Llama-2-7b-chat-dolly-tr"
4model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
5 device_map="auto",
6 torch_dtype=torch.float16,
7 revision="main")
8
9tokenizer = AutoTokenizer.from_pretrained(model_id)
10
11question: "Türkiyenin en büyük şehir nedir?"
12# For generating a response
13prompt = '''
14<s>[INST] {question} [/INST]
15'''
16input_ids = tokenizer(prompt, return_tensors="pt").input_ids
17output = model.generate(inputs=input_ids,max_new_tokens=512,pad_token_id=tokenizer.eos_token_id,top_k=50, do_sample=True,repetition_penalty=1.3
18 top_p=0.95)
19response = tokenizer.decode(output[0])
20
21print(response)