Downloads · 30 days
3
13% of all-time downloads
GebeyaTalent/generate_summaries
generate_summaries is a machine learning model from GebeyaTalent. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
This model represents a fine-tuned version of the facebook/bart-large model, specifically adapted for the task of Resume Summarization. The model has been trained to efficiently generate concise and relevant summaries…
Downloads · 30 days
3
13% of all-time downloads
All-time downloads
24
Public
Repo size
3.3 GB
Likes
0
Public
Click a slice to open those files.
.bin1.6 GB · 100%
From the Hugging Face model README
This model represents a fine-tuned version of the facebook/bart-large model, specifically adapted for the task of Resume Summarization. The model has been trained to efficiently generate concise and relevant summaries from extensive resume texts. The fine-tuning process has tailored the original BART model to specialize in summarization tasks based on a specific dataset.
-Base Model: GebeyaTalent/generate_summaries
-Finetuning Dataset: To be made available in the future.
1. Install the transformers library:
pip install transformers
2. Import the necessary modules:
import torch
from transformers import BartTokenizer, BartForConditionalGeneration
3. Initialize the model and tokenizer:
model_name = 'GebeyaTalent/generate_summaries'
tokenizer = BartTokenizer.from_pretrained(model_name)
model = BartForConditionalGeneration.from_pretrained(model_name)
4. Prepare the text for summarization:
text = 'Your resume text here'
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding="max_length")
5. Generate the summary:
min_length_threshold = 55
summary_ids = model.generate(inputs["input_ids"], num_beams=4, min_length=min_length_threshold, max_length=150, early_stopping=True)
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
6. Output the summary:
print("Summary:", summary)
Dereje Hinsermu