Image-Text-to-Text
Transformers
Safetensors
PyTorch
gemma3
multimodal
lora
conversational
text-generation-inference
Instructions to use wnduss/multimodal_lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wnduss/multimodal_lora with Transformers:
# 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use wnduss/multimodal_lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wnduss/multimodal_lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wnduss/multimodal_lora", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/wnduss/multimodal_lora
- SGLang
How to use wnduss/multimodal_lora with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "wnduss/multimodal_lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wnduss/multimodal_lora", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "wnduss/multimodal_lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wnduss/multimodal_lora", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use wnduss/multimodal_lora with Docker Model Runner:
docker model run hf.co/wnduss/multimodal_lora
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 ๋ณํ ๋ฒ์ ์ ํ์ธํ์ธ์:
- GGUF Version: wnduss/multimodal_lora_gguf
- Downloads last month
- 35