Commit Graph

37 Commits

Author SHA1 Message Date
xming521 bbe08f0c77 feat(data): enhance chat member relationship handling in QA generation
- Updated the `qa_generator.py` to include a new mechanism for managing chat member relationships, allowing the addition of contextual information about the relationship between users in conversations.
- Refactored the CSV loading function to support loading user relationship data from a `users.json` file, improving the context provided during QA generation.
- Added a new configuration option `add_relation` to the dataset settings, enabling users to toggle this feature.
- Updated the `.gitignore` to exclude additional data directories and cache files for better repository hygiene.
- Bumped version to 0.3.03 in `pyproject.toml` to reflect these changes.
2025-11-01 17:11:26 +08:00
xming521 a0829d2098 feat(cleaning): add batch processing for online LLM
Introduce a ThreadPoolExecutor in the OnlineLLM class to enable
concurrent API calls, significantly boosting throughput for LLM operations.
Refactor the OlineLLMCleaningStrategy to leverage this new batching
capability, allowing multiple data points to be processed in parallel.

Increase the default `clean_batch_size` in settings and enhance
`n_process`/`batch_size` for PII detection to optimize for the new
concurrency. Simplify prompt management by removing a dedicated prompt
for online LLM cleaning. Add context manager support to OnlineLLM for
reliable resource cleanup. Ensure LLM chat responses explicitly request
JSON format.
2025-08-28 21:30:05 +08:00
xming521 41167f6d29 fix(dataset): fix #192 standardize dataset naming and cleaning workflow
Refactors dataset management to consistently append '-vl' for vision-language
datasets and dynamically name cleaned datasets (e.g., 'dataset-cleaned').

Enforces vLLM as a strict dependency for LLM-based data cleaning, exiting if
unavailable. Integrates 'enable_thinking' option for LLM cleaning and enables
cleaning by default in relevant test configurations.

Adds torchvision dependency for vision models and streamlines the cleaning call
in training to centralize decision-making.
2025-08-16 22:51:29 +08:00
xming521 7e9886c020 perf(config): reduce default lora rank
Reduces the default LoRA rank in training configuration templates from 16 to 8.
This change aims to optimize resource usage and potentially accelerate training.
2025-08-11 11:23:37 +08:00
xming521 ff0015a2ba performance : some improve 2025-08-09 21:35:43 +08:00
xming521 5a560adafb perf(train): optimize default training configs
Increases LoRA rank from 4 to 16 in example and default configurations.
This aims to improve model fine-tuning effectiveness.

Adjusts per-device batch size and gradient accumulation steps. This
maintains the same effective batch size while potentially reducing
memory usage.

Standardizes LoRA dropout to 0.25 across configurations.

Updates READMEs to clarify model performance expectations.
2025-07-17 22:21:54 +08:00
xming521 785ad1472a remove wechat 2025-07-16 11:21:11 +08:00
xming521 05db183c05 chore: updates config version to 0.3.01
Updates the version number in the settings template file.
This reflects a minor update to the software.
2025-07-10 15:21:28 +08:00
xming521 5f34b4561e feat(dataset): adds option to include time
Adds a configuration option to include the current
datetime in the system prompt of the generated dataset.
This allows models to be aware of the temporal context
of the conversations.
2025-07-09 23:15:51 +08:00
xming521 9a26852c55 更新README文档。 2025-07-02 10:53:10 +08:00
xming521 38113a2524 翻译注释日志为英文 2025-07-01 20:00:34 +08:00
xming521 c94f789868 更新README文档,替换测试数据路径为新的评估数据文件。 2025-06-29 20:27:52 +08:00
xming521 4784e3968e 更新README文档,在settings.template.jsonc中添加media_dir字段。 2025-06-29 16:26:07 +08:00
xming521 2f9cc52955 更新pyproject.toml以添加pip依赖;优化README文档,增强数据预处理说明;调整日志系统配置,支持从配置文件读取日志等级;重构PII检测器,简化代码并添加自定义识别器;更新数据处理逻辑以支持多语言和隐私过滤。 2025-06-27 23:05:45 +08:00
xming521 6df8c5cf2f 使用presidio进行隐私过滤 ; 添加语言支持配置;优化日志系统,hook标准logging到loguru。 2025-06-26 22:54:45 +08:00
xming521 e9b92aa189 更新版本号至0.3.0。 2025-06-25 13:12:32 +08:00
xming521 fc89b802a5 更新版本号至0.2.25,优化README文档,修正数据处理逻辑以支持Telegram平台,添加图像复制功能,改进消息类型处理。 2025-06-25 10:50:42 +08:00
xming521 43b22ce903 调整settings.template.jsonc以添加Telegram参数,更新数据处理逻辑以支持Telegram平台,优化数据模型以处理不同消息类型。 2025-06-23 18:06:55 +08:00
xming521 0ef327b4a5 更新配置文件,优化vllm_infer函数的参数传递逻辑。 2025-06-21 16:13:17 +08:00
xming521 12c055a9d1 更新README.md 和配置文件模板。 2025-06-20 22:32:59 +08:00
xming521 a8bde3f686 更新版本号至0.2.24,修改torch依赖版本至2.7.1,更新README.md。 2025-06-19 16:48:48 +08:00
xming521 55fdfe2520 新增vllm_args配置,更新测试模型参数配置,允许自定义测试数据路径。 2025-06-13 18:27:24 +08:00
BAIKEMARK f3f0b61ad9 更新setting模板 2025-06-12 20:34:01 +08:00
xming521 6e1903ced6 修改数据集名称为chat-sft, 纯文字模型微调数据切换到sharegpt格式。 2025-06-11 15:34:27 +08:00
xming521 a703188a4e Merge remote-tracking branch 'origin/master' into dev 2025-06-01 18:52:46 +08:00
小铭 cc27876139 Update settings.template.jsonc 2025-06-01 10:11:58 +08:00
xming521 11b0e3fbd3 Update .gitignore to ignore the dataset/images directory, modify the transformers version in pyproject.toml, adjust the clean_dataset configuration in settings.template.jsonc, add media_dir to the mllm template, optimize data processing logic in qa_generatorV2.py and utils.py, update the length_cdf function to support the media_dir parameter. 2025-05-31 10:24:51 +08:00
xming521 7e4b0433f1 add QaPairV2 2025-05-27 23:07:17 +08:00
xming521 07662a3dc1 更新pyproject.toml以使用llamafactory的GitHub链接,修改settings.template.jsonc以更新模型路径和添加平台配置,增强数据处理逻辑以支持多语言切割类型,并在qa_generator.py中整合切割类型列表。 2025-05-24 23:24:26 +08:00
xming521 9f59ec4261 更新版本号至0.2.22,添加微信图片复制功能,更新.gitignore以包含新目录 2025-05-24 15:32:37 +08:00
xming521 906b724524 change settings.template.jsonc 2025-05-23 15:50:43 +08:00
niulinbiao 84f2577837 Merge branch 'master' into nb-dev 2025-05-22 20:13:05 +08:00
niuben bcf89d22e9 实现在线LLM清洗数据 2025-05-22 19:50:57 +08:00
xming521 ed9d8e320e Adjust the default values of lora_dropout and num_train_epochs, while applying a unified decorator in the CLI to support log capturing. Use an inelegant approach to print all terminal content to a file, enabled via full_log. 2025-05-21 21:57:12 +08:00
xming521 a18e474720 禁用词配置改到settings.json。 2025-05-08 20:44:32 +08:00
xming521 d7b77483a5 update llm judge 2025-05-05 19:52:29 +08:00
xming521 810ca43f45 将配置文件名从settings.json更改为settings.jsonc 2025-05-03 14:50:22 +08:00