Instructions to use varadsrivastava/BAI_Arg_Alpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use varadsrivastava/BAI_Arg_Alpha with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("varadsrivastava/BAI_Arg_Alpha", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Unsloth Studio new
How to use varadsrivastava/BAI_Arg_Alpha 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 varadsrivastava/BAI_Arg_Alpha 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 varadsrivastava/BAI_Arg_Alpha to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for varadsrivastava/BAI_Arg_Alpha to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="varadsrivastava/BAI_Arg_Alpha", max_seq_length=2048, )
Model: BAI_LLM_FinArg
- Developed by: varadsrivastava
- License: apache-2.0
- Base Model : unsloth/llama-3-8b-Instruct-bnb-4bit
For Proper Inference, please use:
!pip install "unsloth[colab-new] @ git+https://GitHub.com/unslothai/unsloth.git
Loading the fine-tuned model and the tokenizer for inference
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained( model_name = "varadsrivastava/BAI_LLM_FinArg", max_seq_length = 20, dtype = torch.bfloat16, load_in_4bit = True )
Using FastLanguageModel for fast inference
FastLanguageModel.for_inference(model)
Prompt template:
"""<|begin_of_text|><|start_header_id|>system<|end_header_id|>
{instruction}<|eot_id|><|start_header_id|>user<|end_header_id|>
Sentence: {row['text']}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Class: {row['label']}<|eot_id|>"""
NOTE: This model was trained 2x faster using Unsloth and Huggingface's TRL library.
Model tree for varadsrivastava/BAI_Arg_Alpha
Base model
unsloth/llama-3-8b-Instruct-bnb-4bit