Run this model with HF Jobs
Run obadabaq/ai_lawyer on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/obadabaq/ai_lawyer. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/obadabaq/ai_lawyer on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("obadabaq/ai_lawyer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
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.