8000 [BUG] env var ENABLE_VLLM is not natively a bool · Issue #261 · alibaba/ChatLearn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[BUG] env var ENABLE_VLLM is not natively a bool #261

New issue

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

Open
slimfrkha opened this issue Feb 14, 2025 · 0 comments
Open

[BUG] env var ENABLE_VLLM is not natively a bool #261

slimfrkha opened this issue Feb 14, 2025 · 0 comments

Comments

@slimfrkha
Copy link
Contributor

Describe the bug
env variables are string types and cant be typed as bool.

if os.getenv("ENABLE_VLLM", False):
    something

os.environ["ENABLE_VLLM"] needs to be casted first from str to bool before applying if

To Reproduce

export ENABLE_VLLM=False
if os.getenv("ENABLE_VLLM", False):
    print('hi')

will print hi whereas it shouldnt.

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

No branches or pull requests

1 participant
0