Downloads · 30 days
6
3% of all-time downloads
reddgr/gemma-2-2b-ft-lora-noticias-es
gemma-2-2b-ft-lora-noticias-es is a machine learning model from reddgr. 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.
Lightweight finetuning of google/gemma-2-2b-it on a public dataset of news from Spanish digital newspapers (https://www.kaggle.com/datasets/josemamuiz/noticias-laraznpblico/).
Downloads · 30 days
6
3% of all-time downloads
All-time downloads
176
Public
Repo size
20.7 MB
Likes
0
Public
Click a slice to open those files.
.json17.6 MB · 85%
From the Hugging Face model README
Lightweight finetuning of google/gemma-2-2b-it on a public dataset of news from Spanish digital newspapers (https://www.kaggle.com/datasets/josemamuiz/noticias-laraznpblico/).
This model is fine-tuned using LoRa (Low-Rank Adaptation) on the "Noticias La Razón y Público" dataset, a collection of Spanish news articles. The finetuning was done with lightweight methods to ensure efficient training while maintaining performance on the news-related language generation tasks.
This model can be used for conversational AI tasks related to Spanish-language news. The fine-tuned LoRa model is especially suitable for use cases that require both understanding and generating text, such as chat-based interactions, answering questions about news, and discussing headlines.
Copy the code from this Gist for easy chating using Jupyter Notebook: https://gist.github.com/reddgr/20c2e3ea205d1fedfdc8be94dc5c1237
[More Information Needed]
[More Information Needed]
[More Information Needed]
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Copy the code from this Gist for easy chating using Jupyter Notebook: https://gist.github.com/reddgr/20c2e3ea205d1fedfdc8be94dc5c1237
Additionally, you can use the code below to get started with the model.
!python from transformers import AutoTokenizer, AutoModelForCausalLM from peft import PeftModel
save_directory = "./fine_tuned_model" tokenizer = AutoTokenizer.from_pretrained(save_directory) model = AutoModelForCausalLM.from_pretrained(save_directory) peft_model = PeftModel.from_pretrained(model, save_directory)
input_text = "¿Qué opinas de las noticias recientes sobre la economía?" inputs = tokenizer(input_text, return_tensors="pt") output = peft_model.generate(**inputs, max_length=50) print(tokenizer.decode(output[0], skip_special_tokens=True))
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]