Downloads · 30 days
26
31% of all-time downloads
thanushtph/kannada-codet5
kannada-codet5 is a text generation model from thanushtph. Use it when you need the model to write or continue text. It is set up for transformers.
This repository hosts a Kannada CodeT5 model fine-tuned for code-related text generation.
Downloads · 30 days
26
31% of all-time downloads
All-time downloads
85
Public
Parameters
60.5M
242 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors242 MB · 99%
From the Hugging Face model README
This repository hosts a Kannada CodeT5 model fine-tuned for code-related text generation.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_id = "thanushtph/kannada-codet5"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
inputs = tokenizer("translate code to Kannada", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=64)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Once uploaded, the Hugging Face Inference API can be called via: