Downloads · 30 days
0
jo8888/lorahct
lorahct is a machine learning model from jo8888. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This LoRA model's weights are stored in the pytorchloraweights.safetensors file.
Downloads · 30 days
0
Access
Public
Updated Sep 15, 2024
Repo size
497 MB
Likes
0
Public
Click a slice to open those files.
.safetensors344 MB · 100%
From the Hugging Face model README
This LoRA model's weights are stored in the pytorch_lora_weights.safetensors file.
To use this LoRA, you'll need to load these weights and apply them to a base model. Here's a basic example of how to do this using the Transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel, PeftConfig
# Load the base model
base_model = AutoModelForCausalLM.from_pretrained("https://huggingface.co/jo8888/lorahct")
tokenizer = AutoTokenizer.from_pretrained("https://huggingface.co/jo8888/lorahct")
# Load the LoRA weights
model = PeftModel.from_pretrained(base_model, "https://huggingface.co/jo8888/lorahct")
# Your model is now ready to use