Downloads · 30 days
12
19% of all-time downloads
RichardErkhov/RajuKandasamy_-_tamillama_tiny_30m-8bits
RajuKandasamy_-_tamillama_tiny_30m-8bits is a text generation model from RichardErkhov. Use it when you need the model to write or continue text. It is set up for transformers.
Downloads · 30 days
12
19% of all-time downloads
All-time downloads
64
Public
Parameters
30.3M
48 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors46.9 MB · 92%
How the weights are stored.
F1616.4M · 54%
From the Hugging Face model README
Quantization made by Richard Erkhov.
tamillama_tiny_30m - bnb 8bits
license: gpl datasets:
This is an experimental model inspired by the paper https://arxiv.org/abs/2305.07759 - How Small Can Language Models Be and Still Speak Coherent English?.
Extended the same concept for Tamil. A 30M parameter LLaMA architecture model that outputs coherent Tamil is preseted here.
Additional experimentation which is included in the model:
For now, this is a toy model for researchers, students and LLM enthusiasts to play with the linquistic capability of the model.
We release the weights in two formats: Hugging Face transformers format and GGML format to use with CTransformers or LLaMA.cpp.
This is not fit for any practical purpose other than for research/experimentation use cases.
Usage:
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("RajuKandasamy/tamillama_tiny_30m")
model = AutoModelForCausalLM.from_pretrained("RajuKandasamy/tamillama_tiny_30m")
prompt = f"""சொற்கள்:
வாக்குறுதி, எலி, பெரியது
சுருக்கம்:"""
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
generation_output = model.generate(
input_ids=input_ids, max_new_tokens=256
)
print(tokenizer.decode(generation_output[0]))