Downloads · 30 days
224
13% of all-time downloads
abhinand/tamil-llama-7b-instruct-v0.2-GGUF
tamil-llama-7b-instruct-v0.2-GGUF is a machine learning model from abhinand. 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 llama2.
Welcome to the inaugural release of the Tamil LLaMA 7B instruct model – an important step in advancing LLMs for the Tamil language. This model is ready for immediate inference and is also primed for further fine-tunin…
Downloads · 30 days
224
13% of all-time downloads
All-time downloads
1.7K
Public
Repo size
25.8 GB
Likes
1
Public
Click a slice to open those files.
.gguf22.9 GB · 100%
From the Hugging Face model README
Welcome to the inaugural release of the Tamil LLaMA 7B instruct model – an important step in advancing LLMs for the Tamil language. This model is ready for immediate inference and is also primed for further fine-tuning to cater to your specific NLP tasks.
To dive deep into the development and capabilities of this model, please read the research paper and the introductory blog post (WIP) that outlines our journey and the model's potential impact.
Note: This model is based on the Tamil LLaMA series of models. The GitHub repository remains the same - https://github.com/abhinand5/tamil-llama. The base models and the updated code for Tamil LLaMA v0.2 (which this work is based on) will be released soon.
If you appreciate this work and would like to support its continued development, consider buying me a coffee. Your support is invaluable and greatly appreciated.
To access an easy-to-use, no-code demo, please open the provided Google Colab notebook. Complete instructions for usage are included within the notebook itself.
<a href="https://colab.research.google.com/drive/11_RHZim_HubD2NskxSwq4X_NW4XlnrtS?usp=sharing"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Demo In Colab"></a></center>
The Tamil LLaMA models have been enhanced and tailored specifically with an extensive Tamil vocabulary of ~16,000 tokens, building upon the foundation set by the original LLaMA-2.
bfloat16This repo contains GGUF format model files for Tamil LLaMA 7B Instruct v0.2.
GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp. GGUF offers numerous advantages over GGML, such as better tokenisation, and support for special tokens. It is also supports metadata, and is designed to be extensible.
Here is an incomplate list of clients and libraries that are known to support GGUF:
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|---|---|---|---|---|---|
| tamil-llama-7b-instruct-v0.2.Q4_K_M.gguf | Q4_K_M | 4 | 4.18 GB | 6.8 GB | medium, balanced quality - recommended |
| tamil-llama-7b-instruct-v0.2.Q5_K_M.gguf | Q5_K_M | 5 | 4.89 GB | 7.5 GB | large, very low quality loss - recommended |
<|im_start|>system
{system_message}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
Benchmarking was done using LLM-Autoeval on an RTX 3090 on runpod.
Note: Please note that discrepancies have been observed between the Open LLM Leaderboard scores and those obtained from local runs using the LM Eval Harness with identical configurations. The results mentioned here are based on our own benchmarking. To replicate these findings, you can utilize the LLM-Autoeval or use lm-evaluation-harness locally with the configurations described in Open LLM Leaderboard's About page.
| Benchmark | Llama 2 Chat | Tamil Llama v0.2 Instruct | Telugu Llama Instruct | Malayalam Llama Instruct |
|---|---|---|---|---|
| ARC Challenge (25-shot) | 52.9 | 53.75 | 52.47 | 52.82 |
| TruthfulQA (0-shot) | 45.57 | 47.23 | 48.47 | 47.46 |
| Hellaswag (10-shot) | 78.55 | 76.11 | 76.13 | 76.91 |
| Winogrande (5-shot) | 71.74 | 73.95 | 71.74 | 73.16 |
| AGI Eval (0-shot) | 29.3 | 30.95 | 28.44 | 29.6 |
| BigBench (0-shot) | 32.6 | 33.08 | 32.99 | 33.26 |
| Average | 51.78 | 52.51 | 51.71 | 52.2 |
| Model | Type | Data | Base Model | # Params | Download Links |
|---|---|---|---|---|---|
| Tamil LLaMA 7B v0.1 Base | Base model | 12GB | LLaMA 7B | 7B | HF Hub |
| Tamil LLaMA 13B v0.1 Base | Base model | 4GB | LLaMA 13B | 13B | HF Hub |
| Tamil LLaMA 7B v0.1 Instruct | Instruction following model | 145k instructions | Tamil LLaMA 7B Base | 7B | HF Hub |
| Tamil LLaMA 13B v0.1 Instruct | Instruction following model | 145k instructions | Tamil LLaMA 13B Base | 13B | HF Hub |
| Telugu LLaMA 7B v0.1 Instruct | Instruction/Chat model | 420k instructions | Telugu LLaMA 7B Base v0.1 | 7B | HF Hub |
| Malayalam LLaMA 7B v0.2 Instruct | Instruction/Chat model | 420k instructions | Malayalam LLaMA 7B Base v0.1 | 7B | HF Hub |
It's important to note that the models have not undergone detoxification/censorship. Therefore, while they possess impressive linguistic capabilities, there is a possibility for them to generate content that could be deemed harmful or offensive. We urge users to exercise discretion and supervise the model's outputs closely, especially in public or sensitive applications.
Get to know the creators behind this innovative model and follow their contributions to the field:
If you use this model or any of the the Tamil-Llama related work in your research, please cite:
@misc{balachandran2023tamilllama,
title={Tamil-Llama: A New Tamil Language Model Based on Llama 2},
author={Abhinand Balachandran},
year={2023},
eprint={2311.05845},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
We hope this model serves as a valuable tool in your NLP toolkit and look forward to seeing the advancements it will enable in the understanding and generation of the Tamil language.