Downloads · 30 days
15
9% of all-time downloads
cvnberk/idefics-9b-pokemon-peft
idefics-9b-pokemon-peft is a machine learning model from cvnberk. 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.
This model card provides an overview of a fine-tuned version of the idefics-9b model, specialized in understanding and generating content related to Pokémon cards.
Downloads · 30 days
15
9% of all-time downloads
All-time downloads
160
Public
Repo size
79.1 MB
Likes
1
Public
Click a slice to open those files.
.safetensors79.1 MB · 100%
From the Hugging Face model README
This model card provides an overview of a fine-tuned version of the idefics-9b model, specialized in understanding and generating content related to Pokémon cards.
The model is a fine-tuned derivative of the large-scale HuggingFaceM4/idefics-9b, leveraging the PEFT. It is specialized in tasks related to Pokémon card data, capable of various NLP tasks like text generation, classification, and analysis within the context of Pokémon trading cards.
The model is designed for direct use in applications involving Pokémon card data analysis, generation, and enrichment tasks.
Further fine-tuning on other niche domains could enable the model to perform specialized tasks in additional contexts beyond Pokémon cards.
The model may not perform well on general NLP tasks unrelated to Pokémon data or vastly different domains without further fine-tuning.
The model may inherit biases present in the Pokémon card dataset and may not generalize well to other contexts. Use in sensitive areas should be with caution.
Users should be aware of the model's specialized nature and its limitations when applied outside its intended domain. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Use the code below to get started with the model.
[More Information Needed]
The model was trained on the TheFusion21/PokemonCards dataset from HuggingFace. Initially, the dataset underwent a cleaning process to remove any invalid URLs that could disrupt the training pipeline. Subsequently, the data was preprocessed to align with the model's input requirements, ensuring efficient and error-free training.
The dataset was preprocessed to fit the model's input requirements, with special attention to tokenization and formatting.
[More Information Needed]
The following bitsandbytes quantization config was used during training:
from peft import PeftModel, PeftConfig
peft_model_id='ckandemir/idefics-9b-pokemon-peft'
quantization_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.float16,
llm_int8_skip_modules=["lm_head", "embed_tokens"],
)
config = PeftConfig.from_pretrained(peft_model_id)
# Load the model with the appropriate configuration for inference
model = IdeficsForVisionText2Text.from_pretrained(config.base_model_name_or_path, quantization_config=quantization_config, device_map="auto")
processor = AutoProcessor.from_pretrained(config.base_model_name_or_path)
model = PeftModel.from_pretrained(model, peft_model_id, device_map={"":0})