Commit Graph

449 Commits

Author SHA1 Message Date
xming 26eefcc981 Update README.md 2026-06-27 14:10:46 +08:00
xming a20f9eb458 Merge pull request #221 from xming521/dev
Dev
2026-05-31 17:10:54 +08:00
xming 88b0dea2b6 Merge branch 'master' into dev 2026-05-28 12:25:54 +08:00
xming521 04ba49e067 Update subproject commit and clean up training configuration
- Updated subproject commit to indicate a dirty state.
- Removed the `create_new_adapter` field from `TrainSftArgs` class in `config_models.py` to streamline training configuration.
2026-05-28 12:21:28 +08:00
xming521 49c7246a18 Enhance training configuration with pre-training support
- Added `train_pt` command to continue pre-training using prepared text datasets.
- Introduced `TrainPtArgs` class for pre-training parameters, extending `TrainSftArgs`.
2026-05-28 10:58:22 +08:00
xming 465cf78936 Merge pull request #201 from xming521/pre-commit-ci-update-config
🎈 pre-commit autoupdate hooks
2026-05-28 00:14:01 +08:00
xming 2dc436f947 Merge branch 'master' into pre-commit-ci-update-config 2026-05-28 00:13:47 +08:00
xming e249791829 Merge pull request #219 from xming521/master
merge
2026-05-13 16:32:43 +08:00
xming feffd32c2f Merge pull request #218 from xhrxgr/fix-quantization-config
fix: 量化配置未传递给 LLaMA-Factory 导致退化为全精度加载
2026-05-11 14:55:17 +08:00
xming 76e341feef Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-11 10:49:59 +08:00
xhrxgr b8747edf27 fix: 量化配置未传递给 LLaMA-Factory 导致退化为全精度加载
- 新增 QuantizationArgs 配置类,与 LLaMA-Factory QuantizationArguments 对齐
- 移除 load_in_4bit/load_in_8bit(由 quantization_bit 内部处理)
- 新增 quantization_method 支持多种量化后端(bnb, gptq, awq 等)
- 修复 dict_to_argv 跳过 None 值,避免 HfArgumentParser 报错
- 使用 exclude_none=True 防止空字段传递给 run_exp()
- 训练和推理时自动展平嵌套的量化配置
2026-05-10 18:26:09 +08:00
xming 5f0881a931 Remove online fine-tuning information
Removed online fine-tuning section from README_zh.md.
2026-05-08 21:02:54 +08:00
xming fd1885eee9 Remove Online Fine-Tuning section from README
Removed the Online Fine-Tuning section from the README.
2026-05-08 21:02:24 +08:00
pre-commit-ci[bot] ed3fe9be25 🎈 pre-commit autoupdate hooks
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.8 → v0.15.12](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.8...v0.15.12)
- [github.com/pycqa/isort: 6.0.1 → 9.0.0a3](https://github.com/pycqa/isort/compare/6.0.1...9.0.0a3)
2026-05-04 21:30:15 +00:00
xming 2027fb32a0 Merge pull request #213 from octo-patch/fix/issue-115-check-api-server-before-test
fix: check API server availability before running test-model
2026-05-03 15:12:52 +08:00
xming 9e892b9da7 Merge branch 'master' into fix/issue-115-check-api-server-before-test 2026-05-03 15:11:02 +08:00
xming f71a4226cd Remove sponsorship section from README
Removed sponsorship section from the README.
2026-05-03 15:09:28 +08:00
xming 8c4ee22b83 Merge pull request #215 from xming521/dev
Refactor guided decoding parameter handling and error management
2026-05-03 15:08:36 +08:00
xming 74b80c64cc Merge branch 'master' into dev 2026-05-03 15:05:16 +08:00
Octopus e6325fd8b7 refactor: derive API server URL from client.base_url for error message
Address Sourcery review feedback - use client.base_url instead of
hardcoding http://127.0.0.1:8005 so the error message stays in sync
if the base URL configuration changes.
2026-04-24 13:02:10 +08:00
octo-patch d8d2c673f4 fix: check API server availability before running test-model (fixes #115)
Add _check_api_server() that probes GET /v1/models before the test loop
starts. When the server is not running, the user now gets a clear error
message with the exact command to start it instead of a cryptic
connection-refused traceback.

Co-Authored-By: Octopus <liyuan851277048@icloud.com>
2026-04-24 12:19:52 +08:00
小铭 6f359b507a Update README with support details and disclaimer
Added support information and updated project disclaimer.
2026-04-14 10:25:17 +08:00
小铭 3a2c09822c Update README with DartNode branding and disclaimer
Added DartNode branding image and disclaimer to README.
2026-04-10 21:14:20 +08:00
xming521 ab863cf134 refactor(infer): enhance guided decoding parameter handling
- Updated the guided decoding parameter logic to support dynamic imports, improving compatibility with different configurations.
- Simplified the creation of guided decoding parameters by introducing a helper function.
- Modified the retry mechanism in the OpenAI API call to retry on all exceptions, enhancing robustness in error handling.
2026-03-29 11:25:18 +08:00
小铭 3d618a76ff Add support for personal WeChat in deployment section 2026-03-25 16:59:01 +08:00
小铭 34754b0be4 Add WeChat support information to README 2026-03-25 16:56:49 +08:00
小铭 1779b5d8af Update acknowledgment section in README_zh.md 2026-01-20 10:54:13 +08:00
小铭 cfbb4fd136 Merge pull request #210 from xming521/master
Merge pull request #209 from xming521/dev
2026-01-04 22:57:17 +08:00
小铭 0379096591 Merge pull request #209 from xming521/dev
v0.3.03
v0.3.03
2026-01-04 22:36:06 +08:00
xming521 446df58a6c refactor(infer): streamline online model scoring and error handling
- Replaced the previous batch processing logic with a more robust implementation that utilizes guided decoding for improved result parsing.
- Enhanced error logging for failed parsing attempts, providing clearer warnings for issues encountered during inference.
- Updated the score mapping to utilize the new parsed results structure, ensuring accurate score assignment to QA pairs.
2026-01-04 18:14:57 +08:00
xming521 27d877aad3 refactor(infer): improve guided decoding error handling in online inference
- Replaced the previous parsing logic with enhanced error handling for JSON extraction from LLM outputs.
- Introduced detailed logging for failed requests and unexpected result types, improving traceability of issues during inference.
- Updated the import statement to reflect the new utility function for JSON extraction.
2026-01-04 18:07:37 +08:00
xming521 a02b23bb2f chore: update Python version in README files
- Changed the recommended Python version from 3.10 to 3.12 in both `README.md` and `README_zh.md`.
2026-01-04 16:24:19 +08:00
xming521 1107500c41 chore: update dependencies and configuration
- Updated Python version requirement in `pyproject.toml` to 3.12.
- Adjusted dependency specifications for `llamafactory`, `torch`, `torchvision`, and `torchaudio` to include version constraints.
2026-01-04 16:15:15 +08:00
xming521 fca6ca1c55 feat(data): enhance conversation message processing in QA generation
- Added logic to handle the "<begin_chat>" marker in user messages, allowing for improved context in conversation flows.
- Updated the message processing to include the assistant's response when the user initiates a chat, ensuring more coherent QA pairs.
- Refactored the handling of conversation messages to maintain clarity and structure in the generated QA data.
2026-01-04 15:47:14 +08:00
小铭 8ee9d05892 Merge branch 'master' into dev 2025-11-01 17:21:17 +08:00
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
小铭 9eab753787 Update README.md 2025-10-11 17:42:26 +08:00
小铭 30b9ca059e Add online fine-tuning section to README
Added section for online fine-tuning with Lab4AI.
2025-10-11 17:41:20 +08:00
xming521 5669838a91 refactor(infer): improve LLM result parsing error logs
Enhance error messages when JSON parsing of LLM outputs fails in
offline inference. The system now dynamically extracts relevant
text snippets based on the response object type (e.g., RequestOutput,
ChatCompletion), making error logs more informative.

Additionally, suppress verbose debug/info logs from the OpenAI client
and httpx to reduce console noise during online inference.

Update the 'WC-exp' submodule and add 'models_final/*' to .gitignore
for repository hygiene.
2025-09-03 13:31:06 +08:00
xming521 c1c7530630 feat(infer): add guided decoding for online and offline models
Introduces a unified utility to parse and validate JSON-structured outputs
from both vLLM and OpenAI API inference results using Pydantic models.
This enables guided decoding for the OnlineLLM.chat method.
The existing guided decoding logic in vllm_infer is refactored to use
this new shared utility, improving consistency and error handling across
inference modes.
2025-08-29 16:03:57 +08:00
xming521 a887d122af feat(data): include new sticker types in skip list
Expands the list of message types to be skipped or ignored by the application.
This ensures proper handling for user-uploaded GIF stickers and a new sticker
type identified as 'sticker2', preventing potential processing errors.
2025-08-28 22:12:59 +08:00
xming521 ac5afb83f9 Merge remote-tracking branch 'origin/master' into dev 2025-08-28 21:31:16 +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
小铭 7a5bcb491e Merge pull request #198 from MapleWithered/patch-1
fix: fix triton source from default cuda129 to 126
2025-08-27 21:31:46 +08:00
枫亚 c384987b8a fix: fix triton source from cuda129 to 126 2025-08-27 19:42:48 +08:00
小铭 a96996fcbf Merge pull request #196 from xming521/dev
v0.3.02
v0.3.02
2025-08-17 15:18:53 +08:00
xming521 5dcaad0e10 perf(infer): clear cuda cache after inference
Adds a call to empty the CUDA cache immediately after the LLM object is deleted, ensuring prompt release of GPU memory. This helps prevent out-of-memory issues and improves resource utilization for subsequent operations.
2025-08-17 15:18:37 +08:00
xming521 e90f05c12a refactor(data): improve data cleaning robustness
Allow `vllm_infer` to return `None` for failed JSON parsing results,
clarifying the sequence index for such failures. This enables
`LLMCleaningStrategy` to robustly align parsed LLM scores with original data,
correctly handling examples where JSON parsing failed by assigning a default
score of 0.

Adds an option to disable data cleaning during training setup.
2025-08-17 14:30:17 +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 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