Llama 3.2 Vision 是一個 11B 和 90B 尺寸的指令微調圖像推理生成模型集合。
vision 11b 90b
1.5M Pulls Updated 4 months ago
4 個月前更新
4 個月前
085a1fdae525 · 7.9GB
模型
架構mllama
·
參數9.78B
·
量化Q4_K_M
6.0GB
投影器
架構mllama
·
參數895M
·
量化F16
1.9GB
參數
{ "temperature": 0.6, "top_p": 0.9 }
32B
模板
{{- range $index, $_ := .Messages }}<|start_header_id|>{{ .Role }}<|end_header_id|> {{ .Content }}
269B
許可證
LLAMA 3.2 COMMUNITY LICENSE AGREEMENT Llama 3.2 Version Release Date: September 25, 2024 “Agreeme
7.7kB
自述文件
Llama 3.2-Vision 多模態大型語言模型 (LLM) 系列是一個 11B 和 90B 尺寸的指令微調圖像推理生成模型集合(文字 + 圖像輸入 / 文字輸出)。 Llama 3.2-Vision 指令微調模型針對視覺辨識、圖像推理、圖像描述和回答關於圖像的通用問題進行了最佳化。 這些模型在常見的行業基準測試中,效能優於許多可用的開源和封閉式多模態模型。
支援語言:對於僅限文字的任務,官方支援英文、德文、法文、義大利文、葡萄牙文、印地文、西班牙文和泰文。 Llama 3.2 的訓練語料庫比這 8 種支援語言更廣泛。 請注意,對於圖像+文字應用,僅支援英文。
使用方式
首先,拉取模型
ollama pull llama3.2-vision
Python 程式庫
若要將 Llama 3.2 Vision 與 Ollama Python 程式庫 搭配使用
import ollama
response = ollama.chat(
model='llama3.2-vision',
messages=[{
'role': 'user',
'content': 'What is in this image?',
'images': ['image.jpg']
}]
)
print(response)
JavaScript 程式庫
若要將 Llama 3.2 Vision 與 Ollama JavaScript 程式庫 搭配使用
import ollama from 'ollama'
const response = await ollama.chat({
model: 'llama3.2-vision',
messages: [{
role: 'user',
content: 'What is in this image?',
images: ['image.jpg']
}]
})
console.log(response)
cURL
curl https://#:11434/api/chat -d '{
"model": "llama3.2-vision",
"messages": [
{
"role": "user",
"content": "what is in this image?",
"images": ["<base64-encoded image data>"]
}
]
}'