Comments (10)
您好,感谢您使用Data-Juicer!
我刚才在本地尝试了一下是能够work的。您可以直接通过在配置文件里指定ds_cache_dir参数来显示修改cache存放路径(完整的参数信息可参考config_all.yaml),而不需要通过环境变量的形式来修改。
由于Data-Juicer在处理过程中,ds_cache_dir的优先级会高于环境变量,所以环境变量的修改就没用了。内置参数的方式一方面可以更好管理各种参数,另一方面对用户更友好(一些用户可能并不太熟悉环境变量这一套东西)。
以上供您参考~如还有其它问题,可随时联系😄
from data-juicer.
我也踩过这个坑,可能因为正好是属于熟悉环境变量那一套配置操作的用户,折腾好久才发现原来config里显式指定cache路径优先级最高 XD, 其实我觉得这个项目初始化的时候很容易占满cache目录,可能在readme提示一下cache路径设置的注意事项会好一点
from data-juicer.
我也踩过这个坑,可能因为正好是属于熟悉环境变量那一套配置操作的用户,折腾好久才发现原来config里显式指定cache路径优先级最高 XD, 其实我觉得这个项目初始化的时候很容易占满cache目录,可能在readme提示一下cache路径设置的注意事项会好一点
好的,感谢您的意见~我们会在之后在文档中合适的位置特别说明下这个情况👌🏻
from data-juicer.
您好,感谢您使用Data-Juicer!
我刚才在本地尝试了一下是能够work的。您可以直接通过在配置文件里指定ds_cache_dir参数来显示修改cache存放路径(完整的参数信息可参考config_all.yaml),而不需要通过环境变量的形式来修改。
由于Data-Juicer在处理过程中,ds_cache_dir的优先级会高于环境变量,所以环境变量的修改就没用了。内置参数的方式一方面可以更好管理各种参数,另一方面对用户更友好(一些用户可能并不太熟悉环境变量这一套东西)。
以上供您参考~如还有其它问题,可随时联系😄
感谢您的回复,了解开发者的用意了。那希望可以在文档处补充一下相关注意事项,目前使用来看确实很容易占满 .cache 目录,特别是 / 比较小的时候。个人觉得除了文档处添加之外,可以在每一个 yaml 下单独新增一个注释来说明,这样让用户更加清晰看到,这个应该是大部分用户都会需要调整的 config。
from data-juicer.
我也踩过这个坑,可能因为正好是属于熟悉环境变量那一套配置操作的用户,折腾好久才发现原来config里显式指定cache路径优先级最高 XD, 其实我觉得这个项目初始化的时候很容易占满cache目录,可能在readme提示一下cache路径设置的注意事项会好一点
感谢您的回复,我是看直接调用的 datasets 库就往环境变量那里调了,原来 data-juicer 有对这方面做设计,不过也确实方便用户,如果文档处添加说明就更好了
from data-juicer.
哦对了,还想反馈一个问题,在第一次配好环境之后会遇到这个报错
NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.
网上查了一下好像说是和 fsspec
这个版本有关系。
huggingface/datasets#6330 (comment)
降级之后可以用了
from data-juicer.
嗯是的,这个是datasets那边的问题,datasets正在修复,目前他们建议先降低fsspec的版本,我们也会在最近的PR里暂时先显式地加上这个版本限制
from data-juicer.
嗯是的,这个是datasets那边的问题,datasets正在修复,目前他们建议先降低fsspec的版本,我们也会在最近的PR里暂时先显式地加上这个版本限制
好的,我没有其他问题了,感谢您的回答!
from data-juicer.
嗨,两位 @PommesPeter @adrianJW421
我们结合你们的意见修改了下ds_cache_dir这个参数的处理逻辑,用户显式指定这个参数时才会让其优先级高于环境变量,否则沿用环境变量的路径,这样相对更合理一些,参考PR #43
欢迎提出更多宝贵的建议~
from data-juicer.
from data-juicer.
Related Issues (20)
- OP insight demo enhancement
- DJ-v.0.2 docker image update HOT 1
- DJ-v0.2 API page enhancement
- Video content compliance and privacy protection operators (image, text, audio)
- [Bug]: video split by duration mapper return non-exist video
- support panda's student captioner model in our captioning mapper HOT 3
- [Bug]: Video_split_by_scene_mapper create non-exist video_keys
- [Feature Request] Implement more streamlined interfaces for users seeking minimal functionality (data_juicer.op.functional) HOT 3
- Request a sample code demonstrating the use of image_captioning_from_gpt4v_mapper.py HOT 3
- Can not download the data quality classifier models. HOT 1
- alphanumeric_filter算子清洗疑问 HOT 5
- Absolute path to relative path for multi-source
- [Bug]: process on ray occur "TypeError: 'str' object cannot be interpreted as an integer" HOT 8
- filter是否支持batch处理,以及怎么设置batch_size? HOT 6
- hash calculate in ray deduplicator HOT 5
- 为什么大部分的refined recipe都是用simhash去重? HOT 3
- [Bug]: 运行tools/analyze_data.py报错,出现 KeyError: 'text' HOT 2
- [Question] Can't find evalutor.yaml on the path of `/workspace/data-juicer/demos` HOT 1
- A Compatibility Issue in Environment Installation of DJ-Sandbox HOT 1
- stopwords_filter 为什么是过滤掉小于某个阈值的样本 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data-juicer.