- Go to the Hugging Face site.
- Log in if you already have a Hugging Face account. If not, sign up for a free account.
- Select your personal icon on the upper right and choose Access Tokens from the drop-down menu.
- Select Create new token on the right.
- On the Create New Access Token page, select Fine-grained, specify a token name, and select these permissions: “Read access to contents of all repos under your personal namespace” and “Read access to contents of all public gated repos you can access”.
- Scroll to the bottom of the page and select Create Token. Save the token value by selecting the Copy button and store in a safe place.
- Select Done.
- You now need to store your Hugging Face token in Colab. Open Colab and select the key icon in the left column.
- Select +Add new secret. Name the secret “HF_TOKEN” and paste the copied token in the Value field.
- Slide the Notebook Access slider on the left to the right to enable it (it turns blue).
- Close the Secrets dialog.
- Create a Replicate account here by selecting “Try for free”. You will need a GitHub account to do this.
- Create a Replicate API Token here. Save the token value by selecting the Copy button and store in a safe place.
- Try to add a small amount of free credit to your Replicate account here. You will need some credit in your account to run these notebooks.
- You now need to store your Replicate API Token in Colab. Open Colab and select the key icon in the left column.
- Select +Add new secret. Name the secret “REPLICATE_API_TOKEN” and paste the copied token in the Value field.
- Slide the Notebook Access slider on the left to the right to enable it (it turns blue).
- Close the Secrets dialog.
- If you find yourself needing more credit in your Replicate account, instructions are provided on the Replicate site.
- Watsonx API Key
- Watsonx Project ID
- Watsonx URL
- If you don’t have an IBM ID, you can obtain a free IBM ID here.
- Go to the IBM Cloud web page and sign in with your IBM ID.
- If you see the Finish setting up your account pop-up, enter your Account, Company, Billing and Credit Card information. Note: Credit Card information is used to verify your identity. Your card will not be charged at this time. A temporary $1.00 hold is placed on your card while it is being authorized.
- Close the Account upgrade in progress pop-up. It may take a few minutes for your account to be upgraded.
- Now go to the IBM Cloud page in the same web browser and you should still be logged in.
- Click Create for a new IBM Cloud API Key.
- Enter “watsonx” for your key name, leave the description blank, and click on Create on the lower right.
- Copy the API Key and store it in a safe place.
- Go to the watson.ai portal.
- If the Provide your information to continue page appears, provide your company name and phone number and select Continue. No consent needs to be provided to continue.
- Select the X in the upper right of the Welcome to watsonx pop-up.
- On the upper menu bar, select Upgrade to enable your account to run notebooks.
- On the Upgrade your watsonx services page, place a check mark next to Watson Machine Learning, and select the Select plan box on the right.
- Select the Essentials plan to have sufficient tokens to run notebooks and choose Select on the lower right.
- After reading the terms, place a check next to I agree to the terms and click Buy at the lower right.
- Select the X in the upper right to close the window summarizing your service.
- Click on IBM watsonx on the top banner to return to the watsonx home page.
- Click on the + at the right of Projects to create a new project.
- In the name field, enter a name and select Create on the lower right.
- If the Collaborate to maximize productivity pop-up appears, click X on the upper right to close it.
- Select the Manage tab, then use the copy icon to copy the Project ID. Store it in a safe place.
- Click IBM watsonx on the page header to go back to the main watsonx page.
- In the Discover section select Prompts.
- Click on the Earnngs call summary tile.
- In the upper right, select Open in Prompt Lab.
- Click on the the blue Associate service button.
- Place a check next to WatsonMachineLearning and click on the Associate button on the lower right to complete associating the project with the service.
- Dallas: https://us-south.ml.cloud.ibm.com
- Frankfurt: https://eu-de.ml.cloud.ibm.com
- London: https://eu-gb.ml.cloud.ibm.com
- Sydney: https://au-syd.ml.cloud.ibm.com
- Tokyo: https://jp-tok.ml.cloud.ibm.com
- Toronto: https://ca-tor.ml.cloud.ibm.com
- Mumbai: https://ap-south-1.aws.wxai.ibm.com
- Open Colab and select the key icon in the left column.
- Select +Add new secret. Name the secret “WATSONX_APIKEY” and paste your Watsonx API Key in the Value field.
- Slide the Notebook Access slider on the left to the right to enable it (it turns blue).
- Select +Add new secret. Name the secret “WATSONX_PROJECT_ID” and paste your Watsonx Project ID in the Value field.
- Slide the Notebook Access slider on the left to the right to enable it (it turns blue).
- Select +Add new secret. Name the secret “WATSONX_URL” and paste your Watsonx URL in the Value field.
- Slide the Notebook Access slider on the left to the right to enable it (it turns blue).
- Close the Secrets dialog.