Views
No views yet
| Property | Value |
|---|---|
| Base Model | microsoft/Phi-3.5-vision-instruct |
| Quantization | q4f32_1 (int4, float32 model dtype) |
| Model Size | ~2.6 GB (quantized weights) |
| WASM Library | 6.6 MB |
| Context Window | 131,072 tokens |
| Parameters | ~4B |
| Vision Encoder | CLIP ViT-L/14 (336px) |
1import { CreateMLCEngine } from "@mlc-ai/web-llm";
2
3const engine = await CreateMLCEngine("Vet-Rate-org/Vet-Rate-Vision-Phi");
4
5// Text-only chat
6const response = await engine.chat.completions.create({
7 messages: [{ role: "user", content: "Hello!" }]
8});
9
10// Vision chat (with image)
11const response = await engine.chat.completions.create({
12 messages: [{
13 role: "user",
14 content: [
15 { type: "image_url", image_url: { url: "data:image/jpeg;base64,..." } },
16 { type: "text", text: "What do you see in this image?" }
17 ]
18 }]
19});