Skip to content

fix/env_load_validator - #45

Merged
fengzz-coding merged 1 commit into
mainfrom
fix/env_load_validator
Nov 28, 2025
Merged

fengzz-coding merged 1 commit into
mainfrom
fix/env_load_validator

Conversation

@fengzz-coding

Copy link
Copy Markdown
Collaborator

fix the load env file bug.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an environment variable loading bug in the validator by adding load_dotenv() call at module initialization. This ensures that environment variables (specifically HF_TOKEN) are properly loaded before they are accessed by functions like check_valid_revision and train_lora.

  • Imports load_dotenv from the dotenv package
  • Calls load_dotenv() at module level to load environment variables from .env file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fengzz-coding
fengzz-coding merged commit 3b4381f into main Nov 28, 2025
7 checks passed
@fengzz-coding
fengzz-coding deleted the fix/env_load_validator branch November 28, 2025 03:50
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.

3 participants