abtonmoy commited on
Commit
02c954d
·
verified ·
1 Parent(s): 3ab0c1c

Card: add RunPod deploy section

Browse files
Files changed (1) hide show
  1. README.md +6 -4
README.md CHANGED
@@ -218,7 +218,7 @@ gallery = FusionEmbedder.center(gallery_embeddings)
218
 
219
  ### Deploy as an API on RunPod
220
 
221
- One-click deploy the text endpoint from the
222
  [RunPod Hub](https://www.runpod.io/console/hub/Eximius-Labs/fusion-embedding)
223
  (serverless, scales to zero when idle). Once it is running, call it:
224
 
@@ -226,11 +226,13 @@ One-click deploy the text endpoint from the
226
  curl -s https://api.runpod.ai/v2/<ENDPOINT_ID>/runsync \
227
  -H "Authorization: Bearer $RUNPOD_API_KEY" \
228
  -H "Content-Type: application/json" \
229
- -d '{"input": {"input": "a dog barks in the distance"}}'
230
  ```
231
 
232
- Returns 1024-d embeddings. Batch with `"input": ["a", "b"]`; truncate dimensions
233
- with `"dim": 512`.
 
 
234
 
235
  ## License
236
 
 
218
 
219
  ### Deploy as an API on RunPod
220
 
221
+ One-click deploy the endpoint from the
222
  [RunPod Hub](https://www.runpod.io/console/hub/Eximius-Labs/fusion-embedding)
223
  (serverless, scales to zero when idle). Once it is running, call it:
224
 
 
226
  curl -s https://api.runpod.ai/v2/<ENDPOINT_ID>/runsync \
227
  -H "Authorization: Bearer $RUNPOD_API_KEY" \
228
  -H "Content-Type: application/json" \
229
+ -d '{"input": {"text": "a dog on a beach"}}'
230
  ```
231
 
232
+ The endpoint embeds all four modalities. Swap `text` for `image`, `video`, or
233
+ `audio` (the value is an https URL, a data URI, or base64). Audio needs the audio
234
+ tower, so set `FE2_ENABLE_AUDIO=1` on the endpoint and use a 24 GB or larger GPU.
235
+ Returns 1024-d embeddings; add `"dim": 512` to truncate.
236
 
237
  ## License
238