Downloads · 30 days
3
1% of all-time downloads
PrathamMMallya99/textilenet-qwen-lora
textilenet-qwen-lora is a text generation model from PrathamMMallya99. Use it when you need the model to write or continue text. It is set up for peft.
To use this model, run the following code cell:
Downloads · 30 days
3
1% of all-time downloads
All-time downloads
405
Public
Repo size
1.9 GB
Likes
0
Public
Click a slice to open those files.
.safetensors463 MB · 97%
From the Hugging Face model README
To use this model, run the following code cell:
import torch
from peft import PeftModel
from transformers import Qwen2VLForConditionalGeneration
# 1. Load the Base Vision-Language Model
base_model = Qwen2VLForConditionalGeneration.from_pretrained(
"Qwen/Qwen2-VL-2B-Instruct",
torch_dtype=torch.float16, # Recommended to save memory
device_map="auto" # Automatically dispatches to GPU
)
# 2. Apply your trained LoRA adapter
model = PeftModel.from_pretrained(base_model, "PrathamMMallya99/textilenet-qwen-lora")
model.eval()
print("Successfully loaded VLM and LoRA adapter!")