451 Commits

Author SHA1 Message Date
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 1e8de85376 chore(config): Updates the project and configuration versions to 0.3.02.
This release introduces the ability to control the offline cleaning process through the `enable_thinking` configuration parameter.
2025-08-15 22:55:41 +08:00
xming521 8309c498d3 Merge branch 'dev' of https://github.com/xming521/WeClone into dev 2025-08-15 16:53:06 +08:00
xming521 cdef4213cf chore(deps): update core dependencies
Upgrades openai, vllm, torch, transformers, and triton to their
latest versions. This ensures compatibility, incorporates recent bug
fixes, and leverages performance improvements across the project.
2025-08-15 16:46:32 +08:00
xming521 c89dc8100c test(tests): update qwen3 test model to 0.6B
Updates the Qwen3 model in test configurations from 4B to the smaller 0.6B version.
This change helps improve test performance and reduce resource requirements.
2025-08-15 15:34:46 +08:00
xming521 cc34bea317 fix(data): classify gif as animated stickers
Ensures that files with a .gif extension are correctly identified and
categorized as animated expressions or stickers based on the platform.
This improves the accuracy of media type classification during data
processing.
2025-08-15 15:31:45 +08:00
xming521 a3f39495de feat(core): enable configurable thinking and cleaning
Introduces a new 'enable_thinking' configuration for LLM interactions.
This allows dynamic control of thinking behavior in both offline inference
and the data cleaning process. When thinking is enabled for cleaning,
the maximum number of new tokens is increased to accommodate longer
reasoning outputs.

Also reduces the repetition penalty in the cleaning strategy for
improved response diversity and skips data entries containing images
during the LLM cleaning process to avoid irrelevant processing.
2025-08-11 15:34:27 +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 6b134ea703 feat(dataset): handle image data in LLM cleaning
Updates pre-commit hooks.

Previously, the cleaning pipeline was entirely disabled for datasets

containing image messages.

Image conversations now receive a default score, bypassing text-focused

LLM cleaning. This enables partial cleaning for mixed datasets and

prevents pipeline failures.
2025-08-11 11:03:14 +08:00
xming521 a05bb7e856 Merge remote-tracking branch 'origin/master' into dev 2025-08-10 10:30:49 +08:00
xming521 a0f6d0e9b0 chore(tests): include PII test data file
Ensures a specific PII test data file is tracked by Git, enabling its use in related tests.
2025-08-10 10:29:16 +08:00
xming521 ff0015a2ba performance : some improve 2025-08-09 21:35:43 +08:00
小铭 f67d8d2145 Merge pull request #193 from xming521/pre-commit-ci-update-config
🎈 pre-commit autoupdate hooks
2025-08-05 16:58:49 +08:00
pre-commit-ci[bot] 8fea9c1f9b 🎈 pre-commit autoupdate hooks
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.2 → v0.12.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.2...v0.12.7)
2025-08-04 21:27:18 +00:00
xming521 533b0fa678 refactor(data): converts QA item ID to string
Ensures the ID field for generated QA items is always a string. This provides type consistency for downstream consumers.
2025-07-29 11:28:23 +08:00
小铭 4c20fc900c Update .gitkeep 2025-07-21 14:34:32 +08:00
小铭 f22556c74c Update README_zh.md 2025-07-19 16:37:43 +08:00
小铭 758f3a04d4 Update README.md 2025-07-19 16:35:09 +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
小铭 d65784f1dd Merge pull request #189 from xming521/dev
Dev
v0.3.01
2025-07-17 15:19:07 +08:00
xming521 98f506e14a Remove WC-exp submodule entry from remote repository 2025-07-17 15:12:26 +08:00
xming521 77752b6d36 docs: remove redundant multi-gpu training section
The multi-GPU training instructions were duplicated in the README. This change removes the redundant section to simplify the documentation.
2025-07-16 17:02:56 +08:00
xming521 3bb4f04206 chore: remove WC-exp submodule
Removes the WC-exp Git submodule. This dependency is no longer required for the
project, which simplifies the repository's structure and reduces complexity.
2025-07-16 15:47:21 +08:00
小铭 51cc0f7b42 Merge branch 'master' into dev 2025-07-16 15:42:22 +08:00
xming521 6ffa7a64b7 docs: update WhatsApp support status
Reflects that WhatsApp deployment support is currently under development or review.
2025-07-16 15:42:01 +08:00
xming521 72bc75c9cb Remove WC-exp subproject 2025-07-16 15:34:17 +08:00
xming521 a24b7f2714 test(dataset): add image tag count check for Qwen2.5-VL
Ensures the data generation pipeline correctly includes the expected number of <image> tags for multimodal configurations, specifically for Qwen2.5-VL datasets.
2025-07-16 15:30:56 +08:00
xming521 09897a8daf fix(dataset): Data processing results have no images. 2025-07-16 15:18:56 +08:00
xming521 67232998fa chore: ignore WC-exp directory 2025-07-16 14:16:47 +08:00
xming521 323ed0077f 删除 WC-exp 子项目 2025-07-16 11:23:17 +08:00
xming521 785ad1472a remove wechat 2025-07-16 11:21:11 +08:00
xming521 2a7cb5f30d refactor(data): simplify datetime format
Removes the year from the datetime string included in the system prompt. This makes the prompt more concise.
2025-07-14 17:31:54 +08:00
xming521 66e7fdbeb4 test(PII) add tests for PII 2025-07-14 17:26:44 +08:00
xming521 7ce7fcd47a fix(dataset): fix blocked words filter
Adds a blocked words filter to the dataset creation process.
This prevents undesirable words from appearing in the generated
datasets, enhancing data quality and safety.
A test case is added to verify the filter is working correctly.

Also, skips "text" type in qa_generator to avoid duplicated filter.
2025-07-14 13:38:19 +08:00
xming521 49d62b3fda performance(PII): add batch PII detection
Implements batch processing for PII detection to improve
performance. Also, fixes a bug in the PII detection logic
and updates the installation instructions in the README.
2025-07-14 12:55:01 +08:00
xming521 3993d34a8e Revert "refactor(PII): Initializes engines in ChinesePIIDetector"
This reverts commit 94402cfcc4.
2025-07-10 21:07:31 +08:00
xming521 94402cfcc4 refactor(PII): Initializes engines in ChinesePIIDetector
Initializes the analyzer engines within the
ChinesePIIDetector class, ensuring proper
setup and custom recognizer loading during object
instantiation. This enhances the PII detection
process for Chinese-specific contexts.
2025-07-10 21:00:06 +08:00
xming521 3e7892fc76 feat(infer): add retry mechanism to API calls
Adds retry logic for OpenAI and image description API calls
to improve resilience against transient errors and rate
limiting. Implements exponential backoff with configurable
parameters.
2025-07-10 19:29:23 +08:00
xming521 73214f3217 chore(dataset): removes pt dataset info
Removes the dataset information file for the
Portuguese (pt) dataset. This file is no longer
needed.
2025-07-10 15:45:03 +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 a24442b78d feat(PII): enhance PII detection for Chinese
Improves PII detection for Chinese language data by:

- Adding a Chinese-specific PII detector that inherits from
  the base PII detector.
- Incorporating custom recognizers for common Chinese PII
  patterns (e.g., phone numbers, ID cards).
- Filtering out irrelevant country-specific entities when
  processing Chinese text.
- Adding unicode escape id recognizer.

These changes ensure more accurate and comprehensive
identification of sensitive information in Chinese datasets.
2025-07-10 12:10:09 +08:00
xming521 18770bda1e Merge branch 'dev' of https://github.com/xming521/WeClone into dev 2025-07-10 09:59:40 +08:00
xming521 68ea3f2b90 update gitignore 2025-07-10 09:59:30 +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
小铭 1a95fa3e53 Merge pull request #186 from RockChinQ/master
doc(README): update LangBot integration comments
2025-07-09 22:26:38 +08:00
Junyan Qin (Chin) 4b887fc547 Update README_zh.md 2025-07-08 20:48:41 +08:00
Junyan Qin (Chin) cee47594f6 doc(README): update LangBot integration doc 2025-07-08 20:44:28 +08:00
xming521 e96853d0fb refactor(dataset): removes newline characters from messages
This commit addresses an issue where newline characters
within text messages were causing problems in downstream
processing. It removes these characters to ensure that
the messages are processed correctly.
2025-07-08 18:31:30 +08:00
xming521 5b47d9b9ab refactor: unifies combined content separator
Consolidates the separator for combined content to a newline character, removing language-specific branching.
This simplifies the logic and ensures consistency across different languages.
2025-07-08 16:52:47 +08:00
xming521 c4fc9a867d Fix Regarding deepspeed version#184
Updates the deepspeed installation command in the README files to specify a maximum version.

Also adds an example of downloading the default model using ModelScope in README_zh.md.

Finally, increments the project version to 0.3.01.
2025-07-08 16:48:07 +08:00