feature extraction
bge-large-en-v1.5
by BAAI
tags:
10,008,936 downloads774 likes
Get API KeyAPI Usage
Endpoint
POST https://api.gpu.fm/v1/inferenceRequest
curl -X POST https://api.gpu.fm/v1/inference \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "BAAI/bge-large-en-v1.5",
"inputs": "This is a sample sentence for embedding",
"parameters": {
"max_new_tokens": 256
}
}'Response
{
"result": [[0.123, -0.456, 0.789, ...]],
"usage": {
"inputTokens": 12,
"outputTokens": 128
},
"pricing": {
"total": "0.000018"
}
}Python SDK
import requests
response = requests.post(
"https://api.gpu.fm/v1/inference",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "BAAI/bge-large-en-v1.5",
"inputs": "This is a sample sentence for embedding",
"parameters": {"max_new_tokens": 256}
}
)
result = response.json()
print(result["result"])Model Documentation
Full documentation available on HuggingFace →
Pricing
Input$0.07/1M tokens
Billed from your prepaid credits. No minimum commitment.
Details
- Model ID
- BAAI/bge-large-en-v1.5
- Library
- sentence-transformers
- Pipeline
- feature extraction
- Updated
- 2/21/2024
Tags
sentence-transformerspytorchonnxsafetensorsbertfeature-extractionsentence-similaritytransformersmteben