Downloads · 30 days
1.1K
8% of all-time downloads
QuantFactory/Llama-3-8B-TKK-Elite-V1.0-GGUF
Llama-3-8B-TKK-Elite-V1.0-GGUF is a text generation model from QuantFactory. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This is quantized version of tarikkaankoc7/Llama-3-8B-TKK-Elite-V1.0 created using llama.cpp
Downloads · 30 days
1.1K
8% of all-time downloads
All-time downloads
14.6K
Public
Repo size
72.7 GB
Likes
0
Public
Click a slice to open those files.
.gguf145 GB · 100%
From the Hugging Face model README
This is quantized version of tarikkaankoc7/Llama-3-8B-TKK-Elite-V1.0 created using llama.cpp


from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer, pipeline
import torch
model_id = "tarikkaankoc7/TKK-LLaMA3-8B-Elite-V1.0"
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(
model_id,
trust_remote_code=True
)
streamer = TextStreamer(tokenizer)
text_generation_pipeline = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
model_kwargs={"torch_dtype": torch.bfloat16},
streamer=streamer
)
messages = [
{"role": "system", "content": "Sen yardımsever bir yapay zeka asistanısın ve kullanıcıların verdiği talimatlara doğrultusunda en iyi cevabı üretmeye çalışıyorsun."},
{"role": "user", "content": "Leonardo da Vinci'nin en ünlü tablosu hangisidir?"}
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
terminators = [
tokenizer.eos_token_id
]
outputs = text_generation_pipeline(
prompt,
max_new_tokens=2048,
eos_token_id=terminators,
do_sample=True,
temperature=0.6,
top_p=0.95
)
print(outputs[0]["generated_text"])
Leonardo da Vinci'nin en ünlü tablosu Mona Lisa'dır.