We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, some AI models have aliases. For example, gpt2 is an alias for huggingface_hub:gpt2. These are defined in a constant in our Python code:
gpt2
huggingface_hub:gpt2
jupyter-ai/packages/jupyter-ai/jupyter_ai/magics.py
Lines 15 to 20 in b06526b
To add a new alias, one would have to modify the file above and make a new release of Jupyter AI for everyone. There are no aliases for local usage.
Add a command %%ai alias <name> <value> to create custom aliases. These aliases persist for as long as the kernel remains running.
%%ai alias <name> <value>
Add a command such as %%ai alias list that shows users which aliases they have defined. %%ai list (#28) may also display these aliases.
%%ai alias list
%%ai list
Update the example notebooks and documentation with information about this new command.
The text was updated successfully, but these errors were encountered:
JasonWeill
Successfully merging a pull request may close this issue.
Problem
Currently, some AI models have aliases. For example,
gpt2
is an alias forhuggingface_hub:gpt2
. These are defined in a constant in our Python code:jupyter-ai/packages/jupyter-ai/jupyter_ai/magics.py
Lines 15 to 20 in b06526b
To add a new alias, one would have to modify the file above and make a new release of Jupyter AI for everyone. There are no aliases for local usage.
Proposed Solution
Add a command
%%ai alias <name> <value>
to create custom aliases. These aliases persist for as long as the kernel remains running.Add a command such as
%%ai alias list
that shows users which aliases they have defined.%%ai list
(#28) may also display these aliases.Update the example notebooks and documentation with information about this new command.
The text was updated successfully, but these errors were encountered: