Downloads · 30 days
4
13% of all-time downloads
Goekdeniz-Guelmez/KANama-fineweb-v2-test1
KANama-fineweb-v2-test1 is a machine learning model from Goekdeniz-Guelmez. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
The Model Goekdeniz-Guelmez/KANama-fineweb-v2-test1 was created using KANama.
Downloads · 30 days
4
13% of all-time downloads
All-time downloads
32
Public
Repo size
8.3 GB
Likes
1
Public
Click a slice to open those files.
.pth8.3 GB · 100%
From the Hugging Face model README
The Model Goekdeniz-Guelmez/KANama-fineweb-v2-test1 was created using KANama.
pip install KANama, transformers
from model.handler import from_pretrained, quick_inference
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("Goekdeniz-Guelmez/KANama-fineweb-v2-test1")
model = from_pretrained("path/to/model/folder")
prompt="hello"
input_tokens = tokenizer(prompt, return_tensors="pt").input_ids.to(device)
generated_tokens, generated_text = quick_inference(model, input_tokens, max_new_tokens=50, tokenizer=tokenizer)
print(generated_text)