Skip to content

detect network file system #237

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

detect network file system #237

wants to merge 4 commits into from

Conversation

assafvayner
Copy link
Contributor

Fix XET-478

@assafvayner assafvayner requested a review from rajatarya April 8, 2025 23:31
@assafvayner assafvayner changed the title Assaf/478 detect network file system Apr 9, 2025
runtime::init_threadpool(py)?;

if utils::is_network_fs(&XET_CACHE_PATH).unwrap_or_default() {
// TODO: check high perf mode/cache status and change to a warn log if not enabled
tracing::debug!("hf-xet detected your cache and session path is on a network file system, this can cause performance issues, consider setting HF_XET_HIGH_PERFORMANCE=1 or disabling the cache");
Copy link
Contributor

Choose a reason for hiding this comment

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

Provide the flag to disable the cache instead. It seems odd that "if network file system" -> "set HF_XET_HIGH_PERFORMANCE".

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.

2 participants