Skip to content

add unsloth notebooks in unsloth studio#6650

Open
CodeMan62 wants to merge 9 commits into
unslothai:mainfrom
CodeMan62:notebooks-in-studio
Open

add unsloth notebooks in unsloth studio#6650
CodeMan62 wants to merge 9 commits into
unslothai:mainfrom
CodeMan62:notebooks-in-studio

Conversation

@CodeMan62

@CodeMan62 CodeMan62 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

This pr adds unsloth notebooks to unsloth studio

  1. we have a new route /notebooks. notebooks can be accessed under train in sidebaar
  2. each notebook card have 3 things
    i. Use in studio -> to open the notebook at pre-filled fine tuning studio config
    ii. open in colab -> to open notebook in colab
    iii. github -> to open in github

here are 2 images

  1. notebooks page
image 2. result after clicking use in studio image closes #6508

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new Unsloth Notebooks catalog feature, adding backend routes and utilities to build a notebook catalog, alongside a frontend page for searching, filtering, and opening notebooks in Colab, GitHub, or the Fine-tuning Studio. Feedback on the changes highlights a critical Python bug where a missing comma in all causes implicit string concatenation of router names, and a translation key mismatch in the sidebar navigation. Additionally, the reviewer suggests consistently applying the public notebook filter during catalog generation and wrapping the JSON loading logic in a try-except block for robust error handling.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread studio/backend/routes/__init__.py Outdated
Comment thread studio/frontend/src/components/app-sidebar.tsx
Comment thread studio/backend/utils/notebooks/catalog.py Outdated
Comment thread studio/backend/utils/notebooks/catalog.py
Comment thread studio/backend/utils/notebooks/catalog.py
@CodeMan62
CodeMan62 requested a review from danielhanchen as a code owner July 4, 2026 05:44
settings_module.router = APIRouter()
llama_module = ModuleType("routes.llama")
llama_module.router = APIRouter()
preview_module = ModuleType("routes.preview")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added this because i was having this error

Image

@CodeMan62

Copy link
Copy Markdown
Contributor Author

@danielhanchen please take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Is it possible to add Unsloth NOTEBOOKS to the GUI of Unsloth Studio?

1 participant