Instructions to use Raazi29/Nyaya-Llama-3.1-8B-Indian-Legal with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Raazi29/Nyaya-Llama-3.1-8B-Indian-Legal with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/meta-llama-3.1-8b-instruct-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "Raazi29/Nyaya-Llama-3.1-8B-Indian-Legal") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use Raazi29/Nyaya-Llama-3.1-8B-Indian-Legal 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 Raazi29/Nyaya-Llama-3.1-8B-Indian-Legal 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 Raazi29/Nyaya-Llama-3.1-8B-Indian-Legal to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Raazi29/Nyaya-Llama-3.1-8B-Indian-Legal to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Raazi29/Nyaya-Llama-3.1-8B-Indian-Legal", max_seq_length=2048, )
Update README.md
Browse files
README.md
CHANGED
|
@@ -42,7 +42,7 @@ pip install --no-deps "xformers<0.0.26" "trl<0.9.0" peft accelerate bitsandbytes
|
|
| 42 |
from unsloth import FastLanguageModel
|
| 43 |
import torch
|
| 44 |
|
| 45 |
-
model_name = "
|
| 46 |
|
| 47 |
model, tokenizer = FastLanguageModel.from_pretrained(
|
| 48 |
model_name = model_name,
|
|
|
|
| 42 |
from unsloth import FastLanguageModel
|
| 43 |
import torch
|
| 44 |
|
| 45 |
+
model_name = "Raazi29/Nyaya-Llama-3.1-8B-Indian-Legal" # Replace with your username
|
| 46 |
|
| 47 |
model, tokenizer = FastLanguageModel.from_pretrained(
|
| 48 |
model_name = model_name,
|