Text Generation
Safetensors
GGUF
English
llama
llama-3
quantized
indian-accounting
ind-as
finance
accounting
ca
conversational
Instructions to use teclabs/llama-capro 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 teclabs/llama-capro 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 teclabs/llama-capro:Q4_K_M # Run inference directly in the terminal: llama cli -hf teclabs/llama-capro:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf teclabs/llama-capro:Q4_K_M # Run inference directly in the terminal: llama cli -hf teclabs/llama-capro: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 teclabs/llama-capro:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf teclabs/llama-capro: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 teclabs/llama-capro:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf teclabs/llama-capro:Q4_K_M
Use Docker
docker model run hf.co/teclabs/llama-capro:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use teclabs/llama-capro with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "teclabs/llama-capro" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "teclabs/llama-capro", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/teclabs/llama-capro:Q4_K_M
- Ollama
How to use teclabs/llama-capro with Ollama:
ollama run hf.co/teclabs/llama-capro:Q4_K_M
- Unsloth Desktop
- Pi
How to use teclabs/llama-capro with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf teclabs/llama-capro:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "teclabs/llama-capro:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use teclabs/llama-capro with Docker Model Runner:
docker model run hf.co/teclabs/llama-capro:Q4_K_M
- Lemonade
How to use teclabs/llama-capro with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull teclabs/llama-capro:Q4_K_M
Run and chat with the model
lemonade run user.llama-capro-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use teclabs/llama-capro with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf teclabs/llama-capro:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default teclabs/llama-capro:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use teclabs/llama-capro with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf teclabs/llama-capro:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "teclabs/llama-capro:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: llama3.1
|
| 3 |
+
base_model: meta-llama/Llama-3.1-8B-Instruct
|
| 4 |
+
tags:
|
| 5 |
+
- llama
|
| 6 |
+
- llama-3
|
| 7 |
+
- gguf
|
| 8 |
+
- quantized
|
| 9 |
+
- indian-accounting
|
| 10 |
+
- ind-as
|
| 11 |
+
- finance
|
| 12 |
+
- accounting
|
| 13 |
+
- ca
|
| 14 |
+
language:
|
| 15 |
+
- en
|
| 16 |
+
pipeline_tag: text-generation
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Llama-CAPRO (CA Professional) - Indian Accounting Standards Expert
|
| 20 |
+
|
| 21 |
+
CAPRO is a specialized AI assistant for Chartered Accountants and finance professionals, fine-tuned on Indian Accounting Standards (Ind AS).
|
| 22 |
+
|
| 23 |
+
## Model Details
|
| 24 |
+
|
| 25 |
+
- **Base Model**: meta-llama/Llama-3.1-8B-Instruct
|
| 26 |
+
- **Fine-tuned Adapter**: [0xadityam/llama-aica](https://huggingface.co/0xadityam/llama-aica)
|
| 27 |
+
- **Domain**: Indian Accounting Standards (Ind AS)
|
| 28 |
+
- **Format**: GGUF (Ollama, LM Studio, llama.cpp ready)
|
| 29 |
+
- **Training**: LoRA fine-tuned on 269 Ind AS examples
|
| 30 |
+
|
| 31 |
+
## Available Quantizations
|
| 32 |
+
|
| 33 |
+
| Format | Size | Use Case | RAM Required |
|
| 34 |
+
|--------|------|----------|--------------|
|
| 35 |
+
| F16 | ~15GB | Maximum quality | 20GB+ |
|
| 36 |
+
| Q5_K_M | ~5.5GB | Good quality, laptops | 8-12GB |
|
| 37 |
+
| Q4_K_M | ~4.5GB | Balanced, edge devices | 6-8GB |
|
| 38 |
+
|
| 39 |
+
## Quick Start with Ollama
|
| 40 |
+
|
| 41 |
+
Download Q4_K_M (recommended)
|
| 42 |
+
wget https://huggingface.co/teclabs/llama-capro/resolve/main/llama-capro-q4_k_m.gguf
|
| 43 |
+
|
| 44 |
+
Create model
|
| 45 |
+
ollama create llama-capro -f Modelfile-q4-k-m
|
| 46 |
+
|
| 47 |
+
Run
|
| 48 |
+
ollama run llama-capro
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
## Sample Queries
|
| 52 |
+
|
| 53 |
+
- "What is the objective of Ind AS 1?"
|
| 54 |
+
- "Explain revenue recognition under Ind AS 115"
|
| 55 |
+
- "What are disclosure requirements for financial instruments?"
|
| 56 |
+
- "How should goodwill be accounted for under Ind AS?"
|
| 57 |
+
- "What is the difference between Ind AS and IFRS?"
|
| 58 |
+
|
| 59 |
+
## Modelfile (Ollama)
|
| 60 |
+
|
| 61 |
+
FROM llama-capro-q4_k_m.gguf
|
| 62 |
+
|
| 63 |
+
PARAMETER temperature 0.7
|
| 64 |
+
PARAMETER top_p 0.9
|
| 65 |
+
PARAMETER stop "<|eot_id|>"
|
| 66 |
+
PARAMETER num_ctx 2048
|
| 67 |
+
|
| 68 |
+
SYSTEM "You are CAPRO (CA Professional), an expert on Indian Accounting Standards (Ind AS). Provide accurate answers about Ind AS regulations and accounting policies."
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
## Use with LM Studio
|
| 72 |
+
|
| 73 |
+
1. Download LM Studio from [lmstudio.ai](https://lmstudio.ai)
|
| 74 |
+
2. Click "Import" → "Import GGUF"
|
| 75 |
+
3. Select the downloaded .gguf file
|
| 76 |
+
4. Start chatting
|
| 77 |
+
|
| 78 |
+
## Training Details
|
| 79 |
+
|
| 80 |
+
- **LoRA Rank**: 64
|
| 81 |
+
- **LoRA Alpha**: 16
|
| 82 |
+
- **Training Epochs**: 3
|
| 83 |
+
- **Learning Rate**: 2e-4
|
| 84 |
+
- **Max Sequence Length**: 2048
|
| 85 |
+
- **Training Data**: 269 examples covering Ind AS 1 and related standards
|
| 86 |
+
|
| 87 |
+
## Limitations
|
| 88 |
+
|
| 89 |
+
- Specialized for Indian Accounting Standards
|
| 90 |
+
- Not suitable for other accounting standards (IFRS, US GAAP)
|
| 91 |
+
- Responses should be verified with official documents
|
| 92 |
+
- Not for legal or investment advice
|
| 93 |
+
|
| 94 |
+
## License
|
| 95 |
+
|
| 96 |
+
Llama 3.1 Community License
|
| 97 |
+
|
| 98 |
+
## Acknowledgements
|
| 99 |
+
|
| 100 |
+
- Base model: [meta-llama/Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct)
|
| 101 |
+
- LoRA adapter: [0xadityam/llama-aica](https://huggingface.co/0xadityam/llama-aica)
|
| 102 |
+
- Conversion: llama.cpp
|
| 103 |
+
|
| 104 |
+
---
|
| 105 |
+
|
| 106 |
+
**CAPRO** - CA Professional AI Assistant
|
| 107 |
+
Generated: 2025-11-14
|