Instructions to use abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF:Q4_K_M
Use Docker
docker model run hf.co/abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF with Ollama:
ollama run hf.co/abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF:Q4_K_M
- Unsloth Studio
How to use abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF with Docker Model Runner:
docker model run hf.co/abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF:Q4_K_M
- Lemonade
How to use abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull abhinand/gemma-2b-it-tamil-v0.1-alpha-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.gemma-2b-it-tamil-v0.1-alpha-GGUF-Q4_K_M
List all available models
lemonade list
Gemma 2B Tamil v0.1 Alpha - GGUF Quantized Variants [Experimental Release]
This is a Tamil instruction finetuned version of Google's Gemma 2B model. This is an experiment to see if Gemma can be adapted for Tamil without expanding vocabulary. While the responses may be rusty at times, it shows a lot of promise for a 2B parameter model.
Procedure:
- The Gemma base model was continually pretrained on all available Tamil Wikipedia data for 3 epochs.
- The updated model was then finetuned on a mix of English and Tamil alpaca datasets for 5 epochs.
Note: This project is currently under development (FOR TAMIL). The initial pretraining phase may not have been extensive enough, which suggests that the model's performance could improve by extending the pretraining on a larger dataset, such as CulturaX.
π Benchmarks
This model outperforms Google's Gemma 2B base and instruct models on all benchmarks in Nous evaluation suite. It also surprisingly outperforms mlabonne/Gemmalpaca-2B (the best performing 2B model in benchmarks as of Feb 25, 2024) despite being a model aimed at language adaptation.
| Model | Average | AGIEval | GPT4All | TruthfulQA | Bigbench |
|---|---|---|---|---|---|
| gemma-2b-it-tamil-v0.1-alphaπ | 39.41 | 23.38 | 58.94 | 43.18 | 32.14 |
| mlabonne/Gemmalpaca-2B π | 38.39 | 24.48 | 51.22 | 47.02 | 30.85 |
| google/gemma-2b-it π | 36.1 | 23.76 | 43.6 | 47.64 | 29.41 |
| google/gemma-2b π | 34.26 | 22.7 | 43.35 | 39.96 | 31.03 |
Model description
- Model type: A 2B parameter GPT-like model finetuned on 100,000 samples consisting of an equal proportion of English and Tamil samples.
- Language(s): Bilingual. English and Tamil.
- License: Google Gemma Terms of Use
- Finetuned from model: abhinand/gemma-2b-tamil
- Training Precision:
bfloat16 - Training Hardware: 4x Nvidia RTX 3090 GPUs
- Training Cost: $20
Support my work
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.
Prompting Format [Alpaca]
Prompt Template Without Input
{system_prompt}
### Instruction:
{instruction or query}
### Response:
{response}
Prompt Template With Input
{system_prompt}
### Instruction:
{instruction or query}
### Input:
{input}
### Response:
{response}
Usage Note
It's important to note that the models have not undergone detoxification. 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.
Meet the Developers
Get to know the creators behind this innovative model and follow their contributions to the field:
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.
- Downloads last month
- 157
4-bit
8-bit
16-bit
