Skip to content

fix: Replace huggingface-cli login with HF_TOKEN env var in CI#1966

Open
yoavkatz wants to merge 2 commits into
mainfrom
fix/catalog-prep-hf-login
Open

fix: Replace huggingface-cli login with HF_TOKEN env var in CI#1966
yoavkatz wants to merge 2 commits into
mainfrom
fix/catalog-prep-hf-login

Conversation

@yoavkatz
Copy link
Copy Markdown
Member

Summary

  • Fixes huggingface-cli: command not found error in the catalog_preparation workflow
  • Replaces the explicit huggingface-cli login step with the HF_TOKEN environment variable, which HuggingFace libraries automatically pick up for authentication
  • Simpler, more reliable, and avoids PATH issues in CI

Test plan

  • Verify the catalog_preparation workflow passes on this PR
  • Confirm HuggingFace-authenticated dataset access works correctly

🤖 Generated with Claude Code

@yoavkatz yoavkatz force-pushed the fix/catalog-prep-hf-login branch from 20a824b to ba9460d Compare May 14, 2026 11:38
yoavkatz and others added 2 commits May 14, 2026 14:50
…reparation CI

The huggingface-cli command was not found on PATH in CI, causing the
login step to fail. Using the HF_TOKEN environment variable is the
recommended approach for CI and avoids PATH issues entirely.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yoav Katz <katz@il.ibm.com>
The newer datasets library changed as_dataset() to accept fewer
positional arguments. Pass all arguments as keyword arguments for
forward compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yoav Katz <katz@il.ibm.com>
@yoavkatz yoavkatz force-pushed the fix/catalog-prep-hf-login branch from ba9460d to 7c881da Compare May 14, 2026 12:02
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.

1 participant