Downloads · 30 days
17
8% of all-time downloads
hateslopacademy/otpensource-vision
otpensource-vision is a text classification model from hateslopacademy. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as cc-by-4.0.
otpensource-vision은 Bllossom/llama-3.2-Korean-Bllossom-AICA-5B를 기반으로 학습된 Vision-Language 모델입니다. 해당 모델은 한국어와 영어로 작성된 텍스트와 이미지를 결합하여 다양한 태스크를 수행할 수 있도록 설계되었습니다.
Downloads · 30 days
17
8% of all-time downloads
All-time downloads
205
Public
Repo size
29.6 GB
Likes
1
Public
Click a slice to open those files.
.safetensors10.4 GB · 100%
From the Hugging Face model README
otpensource-vision은 Bllossom/llama-3.2-Korean-Bllossom-AICA-5B를 기반으로 학습된 Vision-Language 모델입니다. 해당 모델은 한국어와 영어로 작성된 텍스트와 이미지를 결합하여 다양한 태스크를 수행할 수 있도록 설계되었습니다.
모델 학습에 사용된 데이터셋:
이미지 분석
{
"category": "트렌치코트",
"gender": "여",
"season": "SS",
"color": "네이비",
"material": "",
"feature": "트렌치코트"
}
언어모델 태스크
| Category | Single Turn | Multi Turn |
|---|---|---|
| Reasoning | 6.57 | 5.29 |
| Math | 6.43 | 6.29 |
| Writing | 9.14 | 8.71 |
| Coding | 8.00 | 9.14 |
| Understanding | 8.14 | 9.29 |
| Grammar | 6.71 | 4.86 |
from transformers import MllamaForConditionalGeneration, MllamaProcessor
import torch
from PIL import Image
import requests
model = MllamaForConditionalGeneration.from_pretrained(
'otpensource-vision',
torch_dtype=torch.bfloat16,
device_map='auto'
)
processor = MllamaProcessor.from_pretrained('otpensource-vision')
url = "https://image.msscdn.net/thumbnails/images/prd_img/20240710/4242307/detail_4242307_17205916382801_big.jpg?w=1200"
image = Image.open(requests.get(url, stream=True).raw)
messages = [
{'role': 'user', 'content': [
{'type': 'image', 'image': image},
{'type': 'text', 'text': '이 옷의 정보를 JSON으로 알려줘.'}
]}
]
input_text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(
image=image,
text=input_text,
add_special_tokens=False,
return_tensors="pt",
).to(model.device)
output = model.generate(**inputs, max_new_tokens=256, temperature=0.1)
print(processor.decode(output[0]))
This mllama model was trained 2x faster with Unsloth and Huggingface's TRL library.