Downloads · 30 days
31
0% of all-time downloads
Eurdem/Pinokio_v1.0
Pinokio_v1.0 is a text generation model from Eurdem. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
31
0% of all-time downloads
All-time downloads
47.4K
Public
Parameters
7.2B
14.5 GB on disk
Likes
6
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README
!pip install -qU transformers bitsandbytes accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "Eurdem/Pinokio_v1.0"
#tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
model_kwargs={"torch_dtype": torch.bfloat16, "load_in_8bit": True},
)
messages = [{"role": "user", "content": """Her gün 30 km koşarsam, 270 km yolu kaç günde koşabilirim?"""}]
prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
outputs = pipeline(prompt, do_sample=True, temperature=0.7, top_k=500, top_p=0.7,max_new_tokens=1024)
print(outputs[0]["generated_text"])