Connecting to Factory Hub
Getting Your Credentials
Before connecting to Factory Hub, you'll need to obtain your token and tenant name. Here's how to get these credentials:
Finding Your Credentials
Both your tenant name and API key can be found on the same page shown in the screenshot:
- Log in to the Factory platform
- In the "Copy your personal API key" section, you'll find:
- Your tenant name - this will be displayed in the command or connection example
- Your API key - which you can copy using the blue copy button
The tenant name may be your username, but it could also be different if you're working with multiple tenants or organization accounts.
Connecting to Factory Hub
After obtaining your credentials, you can connect to Factory Hub using the FactoryClient
class:
Upon successful connection, you should see this confirmation message:
Now you're ready to use Factory SDK's functionality for fine-tuning models, running evaluations, or deploying your models.