Downloads · 30 days
0
Suramya/Llama-2-7b-CloudLex-Intent-Detection
Llama-2-7b-CloudLex-Intent-Detection is a text classification model from Suramya. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as llama2.
This model is a CloudLex-specific intent classification model fine-tuned from NousResearch/Llama-2-7b-chat-hf using QLoRA (4-bit) and LoRA adapters.
Downloads · 30 days
0
Access
Public
Updated Dec 12, 2025
Repo size
135 MB
Likes
0
Public
Click a slice to open those files.
.safetensors134 MB · 97%
From the Hugging Face model README
This model is a CloudLex-specific intent classification model fine-tuned from
NousResearch/Llama-2-7b-chat-hf using QLoRA (4-bit) and LoRA adapters.
It is designed to classify user messages into predefined business intents commonly encountered in legal-tech and SaaS customer interactions.
Single-label intent classification (SEQ_CLS)
Given a user message, the model predicts one intent from the following set:
This repository contains LoRA adapters only, not the full base model.
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
from peft import PeftModel
# Load base model
base_model = AutoModelForSequenceClassification.from_pretrained(
"NousResearch/Llama-2-7b-chat-hf",
load_in_4bit=True,
device_map="auto"
)
# Load LoRA adapters
model = PeftModel.from_pretrained(
base_model,
"Suramya/Llama-2-7b-CloudLex-Intent-Detection"
)
tokenizer = AutoTokenizer.from_pretrained(
"Suramya/Llama-2-7b-CloudLex-Intent-Detection"
)
classifier = pipeline(
"text-classification",
model=model,
tokenizer=tokenizer
)
classifier("I'd like to schedule a demo for our law firm")