Downloads · 30 days
0
fractionai/MiniCPM-Llama3-V-2.5-checkpoint
MiniCPM-Llama3-V-2.5-checkpoint is a machine learning model from fractionai. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is a LoRA checkpoint for fine-tuning the MiniCPM-Llama3-V-2.5 model. The checkpoint is contained inside the minicpm folder.
Downloads · 30 days
0
Access
Public
Updated Oct 6, 2024
Repo size
10.7 GB
Likes
0
Public
Click a slice to open those files.
.pt9.4 GB · 87%
From the Hugging Face model README
This is a LoRA checkpoint for fine-tuning the MiniCPM-Llama3-V-2.5 model. The checkpoint is contained inside the minicpm folder.
To use this LoRA with the base model, load the base model and apply the LoRA checkpoint like this:
from peft import PeftModel
from transformers import AutoModel
# Define model type and path to the adapter
model_type = "openbmb/MiniCPM-Llama3-V-2.5"
path_to_adapter = "path_to_lora_checkpoint"
# Load the base pre-trained model
model = AutoModel.from_pretrained(
model_type,
trust_remote_code=True
)
# Load the LoRA adapter and move model to GPU
lora_model = PeftModel.from_pretrained(
model,
path_to_adapter,
device_map="auto",
trust_remote_code=True
).eval().cuda()
# Your code here