Instructions to use RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-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 RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-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 RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-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 RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-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 RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-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 RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf:Q4_K_M
Use Docker
docker model run hf.co/RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf with Ollama:
ollama run hf.co/RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf:Q4_K_M
- Unsloth Studio
How to use RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-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 RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-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 RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf to start chatting
- Docker Model Runner
How to use RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf with Docker Model Runner:
docker model run hf.co/RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf:Q4_K_M
- Lemonade
How to use RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull RichardErkhov/ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf:Q4_K_M
Run and chat with the model
lemonade run user.ViraIntelligentDataMining_-_PersianLLaMA-13B-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Quantization made by Richard Erkhov.
PersianLLaMA-13B - GGUF
- Model creator: https://huggingface.co/ViraIntelligentDataMining/
- Original model: https://huggingface.co/ViraIntelligentDataMining/PersianLLaMA-13B/
| Name | Quant method | Size |
|---|---|---|
| PersianLLaMA-13B.Q2_K.gguf | Q2_K | 4.68GB |
| PersianLLaMA-13B.IQ3_XS.gguf | IQ3_XS | 5.17GB |
| PersianLLaMA-13B.IQ3_S.gguf | IQ3_S | 5.45GB |
| PersianLLaMA-13B.Q3_K_S.gguf | Q3_K_S | 5.45GB |
| PersianLLaMA-13B.IQ3_M.gguf | IQ3_M | 5.75GB |
| PersianLLaMA-13B.Q3_K.gguf | Q3_K | 6.08GB |
| PersianLLaMA-13B.Q3_K_M.gguf | Q3_K_M | 6.08GB |
| PersianLLaMA-13B.Q3_K_L.gguf | Q3_K_L | 6.63GB |
| PersianLLaMA-13B.IQ4_XS.gguf | IQ4_XS | 6.73GB |
| PersianLLaMA-13B.Q4_0.gguf | Q4_0 | 7.06GB |
| PersianLLaMA-13B.IQ4_NL.gguf | IQ4_NL | 7.1GB |
| PersianLLaMA-13B.Q4_K_S.gguf | Q4_K_S | 7.11GB |
| PersianLLaMA-13B.Q4_K.gguf | Q4_K | 7.52GB |
| PersianLLaMA-13B.Q4_K_M.gguf | Q4_K_M | 7.52GB |
| PersianLLaMA-13B.Q4_1.gguf | Q4_1 | 7.81GB |
| PersianLLaMA-13B.Q5_0.gguf | Q5_0 | 8.57GB |
| PersianLLaMA-13B.Q5_K_S.gguf | Q5_K_S | 8.57GB |
| PersianLLaMA-13B.Q5_K.gguf | Q5_K | 8.81GB |
| PersianLLaMA-13B.Q5_K_M.gguf | Q5_K_M | 8.81GB |
| PersianLLaMA-13B.Q5_1.gguf | Q5_1 | 9.33GB |
| PersianLLaMA-13B.Q6_K.gguf | Q6_K | 10.18GB |
| PersianLLaMA-13B.Q8_0.gguf | Q8_0 | 13.18GB |
Original model description:
license: cc-by-nc-4.0 language: - fa library_name: transformers tags: - text-generation-inference inference: false pipeline_tag: text-generation
PersianLLaMA: Towards Building First Persian Large Language Model
π Introduction
Welcome to the home of PersianLLaMA, the pioneering large language model for the Persian language. With 13 billion parameters, this model is trained on Persian Wikipedia corpus and designed to excel in multiple NLP tasks, setting a new benchmark for Persian language understanding and generation.
π Model Description
PersianLLaMA is not just a model but a comprehensive tool for:
- π Text Generation: Crafting coherent and contextually appropriate text.
- π― Instruct Tuning: Executing tasks based on detailed instructions, ideal for scenarios where the model needs to adhere to specific guidelines or produce outputs tailored to particular requirements.
- β Question Answering: Providing accurate answers to Persian queries.
- π Text Summarization: Condensing Persian texts into precise summaries.
This model has been collaboratively developed by a team of experts, including Mohammad Amin Abbasi, Arash Ghafouri, Mahdi Firouzmandi, Hassan Naderi, Behrouz Minaei Bidgoli.
π Quick Start
To integrate PersianLLaMA into your project, follow these steps:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "ViraIntelligentDataMining/PersianLLaMA-13B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "Ψ§ΫΩ Ω
ΨͺΩ Ψ¨Ω ΩΨ§Ψ±Ψ³Ϋ Ψ§Ψ³Ψͺ"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(inputs["input_ids"])
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
π Evaluation and Benchmarks
PersianLLaMA demonstrates superior performance over existing models, with robust evaluation metrics that highlight its capabilities in natural language understanding and generation.
π Citing PersianLLaMA
If you find PersianLLaMA useful in your research, please consider citing:
@article{abbasi2023persianllama,
title={PersianLLaMA: Towards Building First Persian Large Language Model},
author={Abbasi, Mohammad Amin and others},
journal={https://arxiv.org/abs/2312.15713},
year={2023}
}
π License
PersianLLaMA is open-sourced under the CC BY-NC 4.0 license.
- Downloads last month
- 168
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit