Card: add RunPod deploy section
Browse files
README.md
CHANGED
|
@@ -71,6 +71,25 @@ q = fe.embed_text("a dog on a beach")
|
|
| 71 |
score = float(q @ v) # cosine, both unit-norm
|
| 72 |
```
|
| 73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
## How it works
|
| 75 |
|
| 76 |
1. Kimi K3's MoonViT-V2 vision tower (frozen) encodes an image into patch tokens (1024-d).
|
|
|
|
| 71 |
score = float(q @ v) # cosine, both unit-norm
|
| 72 |
```
|
| 73 |
|
| 74 |
+
## Deploy on RunPod
|
| 75 |
+
|
| 76 |
+
[](https://www.runpod.io/console/hub/Eximius-Labs/k3-vision)
|
| 77 |
+
|
| 78 |
+
One-click deploy the endpoint from the
|
| 79 |
+
[RunPod Hub](https://www.runpod.io/console/hub/Eximius-Labs/k3-vision) (serverless,
|
| 80 |
+
scales to zero when idle). Once it is running, call it:
|
| 81 |
+
|
| 82 |
+
```bash
|
| 83 |
+
curl -s https://api.runpod.ai/v2/<ENDPOINT_ID>/runsync \
|
| 84 |
+
-H "Authorization: Bearer $RUNPOD_API_KEY" \
|
| 85 |
+
-H "Content-Type: application/json" \
|
| 86 |
+
-d '{"input": {"image": "<https url | data-uri | base64>"}}'
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
Kimi K3 is gated, so set `HF_TOKEN` (with the K3 license accepted) on the endpoint.
|
| 90 |
+
Returns 2048-d vectors in the fusion-embedding-2 text space; query them with text
|
| 91 |
+
through the fusion-embedding-2 endpoint.
|
| 92 |
+
|
| 93 |
## How it works
|
| 94 |
|
| 95 |
1. Kimi K3's MoonViT-V2 vision tower (frozen) encodes an image into patch tokens (1024-d).
|