Downloads · 30 days
21
35% of all-time downloads
hdogrukan/Llama-3.1-8B-Instruct-Energy
Llama-3.1-8B-Instruct-Energy is a text generation model from hdogrukan. Use it when you need the model to write or continue text. The card lists the license as mit.
Our model, fine-tuned with Llama 3.1 8B, has been trained using a dataset generated from the EPDK and TEDAŞ regulations within the Turkish Electricity Distribution system.
Downloads · 30 days
21
35% of all-time downloads
All-time downloads
60
Public
Parameters
8B
22.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
Our model, fine-tuned with Llama 3.1 8B, has been trained using a dataset generated from the EPDK and TEDAŞ regulations within the Turkish Electricity Distribution system.
It can answer questions related to regulations and provide detailed information about specific materials.
!pip install --upgrade transformers
import transformers
import torch
model_id = "hdogrukan/Llama-3.1-8B-Instruct-Energy"
pipeline = transformers.pipeline(
"text-generation",
model=model_id,
model_kwargs={"torch_dtype": torch.bfloat16},
device_map="auto",
)
messages = [
{"role": "system", "content": "You are helpful asistant."},
{"role": "user", "content": "TEDAŞ-MLZ/99-032.E şartnamesini hangi kurum yayınlamıştır?"},
]
outputs = pipeline(
messages,
max_new_tokens=1024,
temperature=0.2
)
# For more accuracy try this!
"""
outputs = pipeline(
messages,
max_new_tokens=512,
#max_length=50,
num_return_sequences=3,
do_sample=True,
top_k=50,
top_p=0.95,
temperature=0.5 )
"""
print(outputs[0]["generated_text"][-1])
Output : "TEDAŞ-MLZ/99-032.E şartnamesini Türkiye Elektrik Dağıtım A.Ş. yayınlamıştır."