punit16's picture
Update README.md
9341c01 verified
metadata
license: llama3.2
base_model: meta-llama/Meta-Llama-3-3B
tags:
  - summarization
  - news
  - llama3
  - fine-tuned
  - llama3.2

πŸ“° Automatic News Summarizer (Fine-tuned on LLaMA 3.2 3B)

This model is a fine-tuned version of Meta-LLaMA-3-3B, optimized for automatic news summarization tasks. It is designed to generate concise and coherent summaries of news articles using state-of-the-art language modeling techniques.

πŸ“Œ Model Details

πŸ“š Training

  • Fine-tuned on a dataset of curated news articles and summaries
  • Optimized for relevance, coherence, and brevity
  • Training framework: Hugging Face Transformers
  • Fine-tuning platform: Google Colab

πŸš€ Usage Example

from transformers import AutoTokenizer, AutoModelForCausalLM

model_name = "punit16/automatic_news_summarizer"

tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)

input_text = "The government has announced a new policy today aimed at reducing air pollution in major cities..."

inputs = tokenizer(input_text, return_tensors="pt")
summary_ids = model.generate(**inputs, max_new_tokens=512)
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)

print("Summary:", summary)