SFR-Embedding-Code-400M_R
Salesforce's SFR-Embedding-Code-400M_R is a embedding model. SFR-Embedding-Code-400M_R is an open-weights embed model.
by Salesforce
Best for
Ways to use SFR-Embedding-Code-400M_R in osFoundry
Connect with your own key (BYOK)
Open the key dialog and paste your Salesforce API key. osFoundry discovers SFR-Embedding-Code-400M_R automatically — assign it to a Maestro role (router, direct, orchestrator, or fallback) in the Pipeline tab and it is live in every chat. Your key, your provider account — no token markup.
Deploy a dedicated endpoint
SFR-Embedding-Code-400M_R is open-weights — run it locally for free, or deploy a dedicated GPU endpoint in your workspace for reserved capacity with no rate limits.
Use it in a Room App
Room Apps declare AI features in their manifest, then call them with invokeAI:
import { invokeAI } from '@osfoundry/app-sdk'
// 'summarize' is an AI feature declared in your app manifest.
const result = await invokeAI('summarize', userText)
Call it from your own apps
Once a model is wired into your workspace you can host it as an API and reach it from your own services, scripts, or CI — outside osFoundry.
SFR-Embedding-Code-400M_R vs similar models
| Model | Org | Params | Context | Input price | Self-host |
|---|
| SFR-Embedding-Code-400M_R | Salesforce | — | — | Free (local) | Yes |
| hibou-b | histai | — | — | Free (local) | Yes |
| azure | unslothai | — | — | Free (local) | Yes |
| jina-embeddings-v2-base-en | Xenova | — | — | Free (local) | Yes |
Licence
Unspecified — Licence terms not specified — verify the upstream model card before commercial use.
Check upstream documentation.
Frequently asked about SFR-Embedding-Code-400M_R
Is SFR-Embedding-Code-400M_R free to use?
SFR-Embedding-Code-400M_R is free to run locally on your own hardware. Hosted access through osFoundry is metered (input Free (local), output Free (local)). You can switch between local and hosted at any time.
Can I use SFR-Embedding-Code-400M_R commercially?
Commercial use is allowed with conditions. Licence terms not specified — verify the upstream model card before commercial use. Check upstream documentation.
Can I run SFR-Embedding-Code-400M_R locally?
Yes. SFR-Embedding-Code-400M_R is open-weights and runs locally on a workstation GPU. osFoundry's local runtime handles model loading, quantisation, and routing.
What is SFR-Embedding-Code-400M_R best at?
SFR-Embedding-Code-400M_R is well-suited to feature extraction.
How do I use SFR-Embedding-Code-400M_R in osFoundry?
Paste your Salesforce API key in the key dialog (or deploy the open weights for self-hostable models), assign SFR-Embedding-Code-400M_R to a Maestro role in the Pipeline tab, then use it in chat, Room Apps via invokeAI, or your own apps.
Published by Salesforce on January 16, 2025. Source: https://huggingface.co/Salesforce/SFR-Embedding-Code-400M_R