Downloads · 30 days
5
13% of all-time downloads
Jonny00/falcon-1b-movie-sentiment-analysis
falcon-1b-movie-sentiment-analysis is a machine learning model from Jonny00. 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 peft. The card lists the license as apache-2.0.
Quick and dirty hack for binary movie sentiment analysis.
Downloads · 30 days
5
13% of all-time downloads
All-time downloads
40
Public
Repo size
12.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors12.6 MB · 100%
From the Hugging Face model README
Quick and dirty hack for binary movie sentiment analysis.
Finetuned with LoRA (PEFT) on ericzzz/falcon-rw-1b-instruct-openorca.
Trained on a subset of IMDB Dataset of 50K Movie Reviews from Kaggle:
To load the model you can use this code:
PEFT_MODEL = "Jonny00/falcon-1b-movie-sentiment-analysis"
config = PeftConfig.from_pretrained(PEFT_MODEL)
model = AutoModelForCausalLM.from_pretrained(
config.base_model_name_or_path,
return_dict=True,
device_map="auto",
trust_remote_code=True)
tokenizer=AutoTokenizer.from_pretrained(config.base_model_name_or_path)
tokenizer.pad_token = tokenizer.eos_token
model = PeftModel.from_pretrained(model, PEFT_MODEL)
Input: ("<human>: This movie sucks, I'd rather stay at home! <assistant>:")
Output: ("... negative <assistant>: negative <assistant>: negative ...")
https://colab.research.google.com/drive/1LUILztSocpqpMz8xACbtmxl-W-cORXRZ?usp=sharing