How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="wnduss/multimodal_lora")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("wnduss/multimodal_lora")
model = AutoModelForMultimodalLM.from_pretrained("wnduss/multimodal_lora")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
inputs = processor.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Model Card for multimodal_lora

์ด ๋ชจ๋ธ์€ Gemma3๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๋ฉ€ํ‹ฐ๋ชจ๋‹ฌ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๊ธฐ ์œ„ํ•ด LoRA ๊ธฐ๋ฒ•์œผ๋กœ ํŒŒ์ธํŠœ๋‹๋œ ์–ด๋Œ‘ํ„ฐ์ž…๋‹ˆ๋‹ค.

Model Details

Model Description

  • ๋ชจ๋ธ ์œ ํ˜•: LoRA Adapter (PEFT)
  • ๋ฒ ์ด์Šค ๋ชจ๋ธ: Gemma3
  • ํ•™์Šต ๋ชฉ์ : ๋ฉ€ํ‹ฐ๋ชจ๋‹ฌ ๋ฐ์ดํ„ฐ ์ฒ˜๋ฆฌ๋ฅผ ์œ„ํ•œ ํŒŒ์ธํŠœ๋‹
  • ์ž‘์„ฑ์ž: leejuyeon (wnduss)

How to Use

์ด ๋ชจ๋ธ์€ LoRA ์–ด๋Œ‘ํ„ฐ์ด๋ฏ€๋กœ, ์›๋ณธ Gemma3 ๋ชจ๋ธ๊ณผ ํ•จ๊ป˜ ๋กœ๋“œํ•˜์—ฌ ์‚ฌ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ํŒŒ์ด์ฌ ํ™˜๊ฒฝ์—์„œ Hugging Face peft ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ํ†ตํ•ด ๋ถˆ๋Ÿฌ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Related Resources

์ด ๋ชจ๋ธ์„ ๋กœ์ปฌ ํ™˜๊ฒฝ(llama.cpp, Ollama ๋“ฑ)์—์„œ ๊ฐ„ํŽธํ•˜๊ฒŒ ์‚ฌ์šฉํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ GGUF ๋ณ€ํ™˜ ๋ฒ„์ „์„ ํ™•์ธํ•˜์„ธ์š”:

Downloads last month
41
Safetensors
Model size
4B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support