CoolFace
Modelpublic

prithivMLmods/Llama-Chat-Summary-3.2-3B

sourceHugging Facecreativeml-openrail-mupdated 2y agoView on Hugging Face
7likes40downloads
Model Card

Llama-Chat-Summary-3.2-3B: Context-Aware Summarization Model

Llama-Chat-Summary-3.2-3B is a fine-tuned model designed for generating context-aware summaries of long conversational or text-based inputs. Built on the meta-llama/Llama-3.2-3B-Instruct foundation, this model is optimized to process structured and unstructured conversational data for summarization tasks.

**File Name****Size****Description****Upload Status**
.gitattributes1.57 kBGit LFS tracking configuration.Uploaded
README.md42 BytesInitial commit with minimal documentation.Uploaded
config.json1.03 kBModel configuration settings.Uploaded
generation_config.json248 BytesGeneration-specific configurations.Uploaded
pytorch_model-00001-of-00002.bin4.97 GBPart 1 of the PyTorch model weights.Uploaded (LFS)
pytorch_model-00002-of-00002.bin1.46 GBPart 2 of the PyTorch model weights.Uploaded (LFS)
pytorch_model.bin.index.json21.2 kBIndex file for the model weights.Uploaded
special_tokens_map.json477 BytesMapping of special tokens for the tokenizer.Uploaded
tokenizer.json17.2 MBPre-trained tokenizer file.Uploaded (LFS)
tokenizer_config.json57.4 kBConfiguration file for the tokenizer.Uploaded

Key Features

  1. 1.Conversation Summarization:
  2. 2.Generates concise and meaningful summaries of long chats, discussions, or threads.
  1. 1.Context Preservation:
  2. 2.Maintains critical points, ensuring important details aren't omitted.
  1. 1.Text Summarization:
  2. 2.Works beyond chats; supports summarizing articles, documents, or reports.
  1. 1.Fine-Tuned Efficiency:
  2. 2.Trained with Context-Based-Chat-Summary-Plus dataset for accurate summarization of chat and conversational data.

Training Details


Applications

  1. 1.Customer Support Logs:
  2. 2.Summarize chat logs or support tickets for insights and reporting.
  1. 1.Meeting Notes:
  2. 2.Generate concise summaries of meeting transcripts.
  1. 1.Document Summarization:
  2. 2.Create short summaries for lengthy reports or articles.
  1. 1.Content Generation Pipelines:
  2. 2.Automate summarization for newsletters, blogs, or email digests.
  1. 1.Context Extraction for AI Systems:
  2. 2.Preprocess chat or conversation logs for downstream AI applications.
Load the Model
python
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "prithivMLmods/Llama-Chat-Summary-3.2-3B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
Generate a Summary
python
prompt = """
Summarize the following conversation:
User1: Hey, I need help with my order. It hasn't arrived yet.
User2: I'm sorry to hear that. Can you provide your order number?
User1: Sure, it's 12345.
User2: Let me check... It seems there was a delay. It should arrive tomorrow.
User1: Okay, thank you!
"""

inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100, temperature=0.7)

summary = tokenizer.decode(outputs[0], skip_special_tokens=True)
print("Summary:", summary)

Expected Output

"The user reported a delayed order (12345), and support confirmed it will arrive tomorrow."


Deployment Notes

  • —Serverless API: This model currently lacks sufficient usage for serverless endpoints. Use dedicated endpoints for deployment.
  • —Performance Requirements:
  • —GPU with sufficient memory (recommended for large models).
  • —Optimization techniques like quantization can improve efficiency for inference.