Login#
Since Finetuner leverages cloud resources for fine-tuning,
you are required to login()
and obtain a token from Jina before starting a fine-tuning job.
It is as simple as:
import finetuner
finetuner.login()
A browser window should pop up with different login options.
After login()
you will see the following message in your terminal:
🔐 Successfully logged in to Jina AI as [USER NAME]!
Now, an authentication token is generated which can be read with the get_token()
function.
If you have been logged in before, the existing token will not be overwritten, however, if you want this to happen, you can set the force
attribute in the login function to true.
finetuner.login(force=True)
Why do I need to login?
Login is required since Finetuner needs to push your DocumentArray
or CSV file into the Jina AI Cloud as training or evaluation data.
Once you have successfully logged in, your training data will be linked to your personal user profile and will only be visible to you.
Once fine-tuning is completed, the fine-tuned model will be visible only to you in the Jina AI Cloud.