Skip to content
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

HunFlair model save path. #1999

Closed
YaoXinZhi opened this issue Dec 2, 2020 · 5 comments
Closed

HunFlair model save path. #1999

YaoXinZhi opened this issue Dec 2, 2020 · 5 comments

Comments

@YaoXinZhi
Copy link

I noticed that if you run the tool under windows system, the model will be downloaded to the system disk (C drive) by default, and it will be downloaded to the root directory (non-working directory) by default in Linux, but the model size exceeds 5G, which makes the system Running slowly, maybe there are other ways to improve it ?

@mariosaenger
Copy link
Collaborator

Hi @YaoXinZhi

thanks for noticing. However, I can't reproduce it on my system (linux) exactly. In my setting the files will be stored in the Flair cache directory /home/<user>/.flair/models (and not in the root directory). Can you specify more details of your setup (i.e. os, python and flair version)?

Moreover, you should be able to specify a custom cache directory by setting the environment variable FLAIR_CACHE_ROOT. I think this is the most simple way to change the location of Flair models and data sets. Have you tried this?

@YaoXinZhi
Copy link
Author

My problem has been solved, thank you.

@alanakbik
Copy link
Collaborator

Did @mariosaenger's answer help or did you solve it a different way?

@YaoXinZhi
Copy link
Author

Yes, I solved the problem by changing the environment variables FLAIR_CACHE_ROOT , sorry for the late reply.

@nbosc
Copy link

nbosc commented Feb 12, 2025

Hi, is this solution still valid in 2025?

edit: yes it is

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

4 participants