Instructions to use obadabaq/ai_lawyer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use obadabaq/ai_lawyer with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("obadabaq/ai_lawyer", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use obadabaq/ai_lawyer 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 obadabaq/ai_lawyer 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 obadabaq/ai_lawyer to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for obadabaq/ai_lawyer to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="obadabaq/ai_lawyer", max_seq_length=2048, )
ai_lawyer
This project involves fine-tuning the LLaMA3-8B model using the obadabaq/structured-uae-laws dataset. The fine-tuning was conducted with the Unsloth. The fine-tuned model has been uploaded to Hugging Face and is available at obadabaq/ai_lawyer.
Project Overview
The main objective of this project was to develop a high-efficiency legal question-answering model utilizing LLaMA3-8B. By harnessing the obadabaq/structured-uae-laws dataset and the features of Unsloth, we successfully fine-tuned the model. This AI model operates similarly to a lawyer, posing comprehensive questions regarding the case background and rendering decisions based on the information provided.
Fine-Tuning Details
Model
- Base Model:
StevenChen16/llama3-8b-Lawyer - Fine-Tuned Model:
obadabaq/ai_lawyer
Dataset
- Dataset Used: `obadabaq/structured-uae-laws
Repository`
- GitHub Repository: ai-lawer/UAE-AI-Lawyer
Results
The fine-tuned model has demonstrated encouraging results in comprehending and responding to legal inquiries. By utilizing advanced methods like LoRA and UnslothAI optimizations, the training process was both efficient and effective, leading to high-quality model outputs.