unsloth/studio/backend/utils
Daniel Han 798e73e770 fix(studio): add tiktoken to .venv_t5 for Qwen tokenizers
Qwen-family models (Qwen3.5, etc.) use a tiktoken-based tokenizer.
When Studio routes these models through the transformers 5.x overlay
(.venv_t5), the tokenizer instantiation fails with:

  ValueError: Couldn't instantiate the backend tokenizer...
  You need to have sentencepiece or tiktoken installed

This happens because .venv_t5 was set up with only transformers and
huggingface_hub (both --no-deps). The main venv usually has tiktoken,
but on Windows it sometimes does not.

Fix: install tiktoken into .venv_t5 in both setup.sh and the runtime
fallback (_ensure_venv_t5_exists). Uses --no-deps in the runtime path
since regex/requests are always present in the main venv.
2026-03-18 10:33:45 +00:00
..
datasets studio: improve onboarding UX, tooltips, and training defaults (#4355) 2026-03-17 07:46:07 -07:00
hardware studio: improve onboarding UX, tooltips, and training defaults (#4355) 2026-03-17 07:46:07 -07:00
inference studio: improve onboarding UX, tooltips, and training defaults (#4355) 2026-03-17 07:46:07 -07:00
models Fix vision detection subprocess using undefined logger 2026-03-16 02:46:56 -07:00
paths [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-03-15 05:24:06 -07:00
.gitkeep root studio folder 2026-02-02 09:13:49 +00:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
cache_cleanup.py Final cleanup 2026-03-12 18:28:04 +00:00
transformers_version.py fix(studio): add tiktoken to .venv_t5 for Qwen tokenizers 2026-03-18 10:33:45 +00:00
utils.py Final cleanup 2026-03-12 18:28:04 +00:00