Commit graph

80 commits

Author SHA1 Message Date
KKKKKKKevin
601f371f46
change log (#346) 2025-05-12 11:59:38 +08:00
Xiang Ying
a65f4a58fe
hotfix for strage problem which leads to the error during graphrag. (#347) 2025-05-12 11:59:35 +08:00
yingapple
da2b704ed4 fix(model tokenizer): just use the model tokenizer without anythink else. 2025-05-09 16:09:20 +08:00
ryangyuan
c3855f37ad
Fix/0429/fix all log (#318)
* fix:fix return all log problem

* fix:delete no use code

* fix: add sse offset

* fix: change offset to string

* fix: fix more localStore

* fix: change log only

* fix: cancel offset

* fix: remove offset

* fix:delete no use code

* fix:add hertbeat

* fix: delete useless code

---------

Co-authored-by: Ye Xiangle <yexiangle@mail.mindverse.ai>
2025-05-07 15:53:25 +08:00
yexiangle
ff9a9b9970
delete useless code in route_l2.py (#332) 2025-05-07 13:40:10 +08:00
yexiangle
82422a5f76
Merge pull request #313 from mindverse/feat/0427/meta_exposure
Feat/0427/meta exposure
2025-05-06 16:04:38 +08:00
ryangyuan
b7f0cc7feb
Feat/0422/train l1 exposure (#319)
* feat:add get steps content(EXTRACT_DIMENSIONAL_TOPICS,MAP_ENTITY_NETWORK,DECODE_PREFERENCE_PATTERNS,AUGMENT_CONTENT_RETENTION)

* feat:add file_type

* feat: exponse train L1

* feat:jsonfy return data

* fix: jsonfy

* feat:add log

* fix: fix step change error

* feat:delete useless log

* fix:fix not import problem

* fix:fix old trainprocess init problem

* feat: Train Step Show Table

* feat:add L1_exposure_manager optimize code structure

* fix: fix bio return format & map_your_entity_network

* feat: show tip when resource empty

* add have_output & path

* fix: fix log problem

* feat: adjustment output ui

* fix: L1 exposure add loading

---------

Co-authored-by: Ye Xiangle <yexiangle@mail.mindverse.ai>
2025-05-06 16:02:22 +08:00
KKKKKKKevin
78bb0e3c8a
Merge pull request #316 from mindverse/fix/0430/hotfix_use_previous_params
fix:hotfix use_previous_params problem
2025-04-30 16:08:06 +08:00
Ye Xiangle
1bf8ba5ce7 fix:hotfix use_previous_params problem 2025-04-30 14:49:07 +08:00
yexiangle
b3dcdd8ed5
fix:fix monitor model download log problem (#305) 2025-04-28 17:12:41 +08:00
yingapple
53dfdafc9b feat: up max seq length 2025-04-27 11:59:16 +08:00
yingapple
c88d2362e5 fix for gpu 2025-04-27 11:54:45 +08:00
KKKKKKKevin
1d8b48e6bc
preserve training param (#292) 2025-04-25 18:56:26 +08:00
KKKKKKKevin
3ae664fe09
add execute right (#289) 2025-04-25 17:20:07 +08:00
KKKKKKKevin
de8370ba0d
fix move trainprocess to solve loop (#288) 2025-04-25 16:26:36 +08:00
KKKKKKKevin
37553fb23b
Feature/fix training model switch bug2 (#281)
* feature: use uv to setup python environment

* TrainProcessService add singleten method: get_instance

* feat: fix code

* Added CUDA support (#228)

* Add CUDA support

- CUDA detection
- Memory handling
- Ollama model release after training

* Fix logging issue

added cuda support flag so log accurately reflected cuda toggle

* Update llama.cpp rebuild

Changed llama.cpp to only check if cuda support is enabled and if so rebuild during the first build rather than each run

* Improved vram management

Enabled memory pinning and optimizer state offload

* Fix CUDA check

rewrote llama.cpp rebuild logic, added manual y/n toggle if user wants to enable cuda support

* Added fast restart and fixed CUDA check command

Added make docker-restart-backend-fast to restart the backend and reflect code changes without causing a full llama.cpp rebuild

Fixed make docker-check-cuda command to correctly reflect cuda support

* Added docker-compose.gpu.yml

Added docker-compose.gpu.yml to fix error on machines without nvidia gpu and made sure "\n" is added before .env modification

* Fixed cuda toggle

Last push accidentally broke cuda toggle

* Code review fixes

Fixed errors resulting from removed code:
- Added return save_path to end of save_hf_model function
- Rolled back download_file_with_progress function

* Update Makefile

Use cuda by default when using docker-restart-backend-fast

* Minor cleanup

Removed unnecessary makefile command and fixed gpu logging

* Delete .gpu_selected

* Simplified cuda training code

- Removed dtype setting to let torch automatically handle it
- Removed vram logging
- Removed Unnecessary/old comments

* Fixed gpu/cpu selection

Made "make docker-use-gpu/cpu" command work with .gpu_selected flag and changed "make docker-restart-backend-fast" command to respect flag instead of always using gpu

* Fix Ollama embedding error

Added custom exception class for Ollama embeddings, which seemed to be returning keyword arguments while the Python exception class only accepts positional ones

* Fixed model selection & memory error

Fixed training defaulting to 0.5B model regardless of selection and fixed "free(): double free detected in tcache 2" error caused by cuda flag being passed incorrectly

* fix: train service singlten

---------

Co-authored-by: Zachary Pitroda <30330004+zpitroda@users.noreply.github.com>
2025-04-25 15:27:52 +08:00
KKKKKKKevin
29a17c8615
Optimize TrainProcessService Singleton Pattern Implementation (#279)
* feature: use uv to setup python environment

* TrainProcessService add singleten method: get_instance
2025-04-25 14:17:15 +08:00
Zachary Pitroda
053090937d
Added CUDA support (#228)
* Add CUDA support

- CUDA detection
- Memory handling
- Ollama model release after training

* Fix logging issue

added cuda support flag so log accurately reflected cuda toggle

* Update llama.cpp rebuild

Changed llama.cpp to only check if cuda support is enabled and if so rebuild during the first build rather than each run

* Improved vram management

Enabled memory pinning and optimizer state offload

* Fix CUDA check

rewrote llama.cpp rebuild logic, added manual y/n toggle if user wants to enable cuda support

* Added fast restart and fixed CUDA check command

Added make docker-restart-backend-fast to restart the backend and reflect code changes without causing a full llama.cpp rebuild

Fixed make docker-check-cuda command to correctly reflect cuda support

* Added docker-compose.gpu.yml

Added docker-compose.gpu.yml to fix error on machines without nvidia gpu and made sure "\n" is added before .env modification

* Fixed cuda toggle

Last push accidentally broke cuda toggle

* Code review fixes

Fixed errors resulting from removed code:
- Added return save_path to end of save_hf_model function
- Rolled back download_file_with_progress function

* Update Makefile

Use cuda by default when using docker-restart-backend-fast

* Minor cleanup

Removed unnecessary makefile command and fixed gpu logging

* Delete .gpu_selected

* Simplified cuda training code

- Removed dtype setting to let torch automatically handle it
- Removed vram logging
- Removed Unnecessary/old comments

* Fixed gpu/cpu selection

Made "make docker-use-gpu/cpu" command work with .gpu_selected flag and changed "make docker-restart-backend-fast" command to respect flag instead of always using gpu

* Fix Ollama embedding error

Added custom exception class for Ollama embeddings, which seemed to be returning keyword arguments while the Python exception class only accepts positional ones

* Fixed model selection & memory error

Fixed training defaulting to 0.5B model regardless of selection and fixed "free(): double free detected in tcache 2" error caused by cuda flag being passed incorrectly
2025-04-25 10:20:36 +08:00
ryangyuan
9fe511f0f2
Feature/0416/add thinking mode (#264)
* fix: modify thinking_model loading configuration

* feat: realize thinkModel ui

* feat:store

* feat: add combined_llm_config_dto

* add thinking_model_config & database migration

* directly add thinking model to user_llm_config

* delete thinking model repo dto service

* delete thinkingmodel table migration

* add is_cot config

* feat: allow define  is_cot

* feat: simplify logs info

* feat: add training model

* feat: fix is_cot problem

* fix: fix chat message

* fix: fix progress error

* fix: disable no settings thinking

* feat: add thinking warning

* fix: fix start service error

* feat:fix init trainparams problem

* feat: change playGround prompt

* feat: Add Dimension Mismatch Handling for ChromaDB (#157) (#207)

* Fix Issue #157

Add chroma_utils.py to manage chromaDB and added docs for explanation

* Add logging and debugging process

- Enhanced the`reinitialize_chroma_collections` function in`chroma_utils.py` to properly check if collections exist before attempting to delete them, preventing potential errors when collections don't exist.
- Improved error handling in the`_handle_dimension_mismatch` method in`embedding_service.py` by adding more robust exception handling and verification steps after reinitialization.
- Enhanced the collection initialization process in`embedding_service.py` to provide more detailed error messages and better handle cases where collections still have incorrect dimensions after reinitialization.
- Added additional verification steps to ensure that collection dimensions match the expected dimension after creation or retrieval.
- Improved logging throughout the code to provide more context in error messages, making debugging easier.

* Change topics_generator timeout to 30 (#263)

* quick fix

* fix: shade -> shade_merge_info (#265)

* fix: shade -> shade_merge_info

* add convert array

* quick fix import error

* add log

* add heartbeat

* new strategy

* sse version

* add heartbeat

* zh to en

* optimize code

* quick fix convert function

* Feat/new branch management (#267)

* feat: new branch management

* feat: fix multi-upload

* optimize contribute management

---------

Co-authored-by: Crabboss Mr <1123357821@qq.com>
Co-authored-by: Ye Xiangle <yexiangle@mail.mindverse.ai>
Co-authored-by: Xinghan Pan <sampan090611@gmail.com>
Co-authored-by: doubleBlack2 <108928143+doubleBlack2@users.noreply.github.com>
Co-authored-by: kevin-mindverse <kevin@mindverse.ai>
Co-authored-by: KKKKKKKevin <115385420+kevin-mindverse@users.noreply.github.com>
2025-04-24 14:19:23 +08:00
KKKKKKKevin
ce9cfcb4a8
Feature/fix update instace (#272)
* fix password update logic, if there's more than one load

* update fix
2025-04-23 20:47:41 +08:00
yexiangle
81c4861a01
fix:fix l1 save problem (#269)
* fix:fix l1 save problem

* fix:simplify the code

* fix:delete no use import

* fix:delete useless data
2025-04-23 20:46:27 +08:00
kevin-mindverse
cb6f02efc6 quick fix convert function 2025-04-23 10:17:31 +08:00
kevin-mindverse
a7577e5aa6 quick fix import error 2025-04-22 15:12:27 +08:00
KKKKKKKevin
aa38f672f0
fix: shade -> shade_merge_info (#265)
* fix: shade -> shade_merge_info

* add convert array
2025-04-22 15:05:08 +08:00
kevin-mindverse
39d0cce7a0 quick fix 2025-04-22 14:58:49 +08:00
doubleBlack2
1fb4dd9ebb
Change topics_generator timeout to 30 (#263) 2025-04-22 11:57:45 +08:00
Xinghan Pan
5868f94622
feat: Add Dimension Mismatch Handling for ChromaDB (#157) (#207)
* Fix Issue #157

Add chroma_utils.py to manage chromaDB and added docs for explanation

* Add logging and debugging process

- Enhanced the`reinitialize_chroma_collections` function in`chroma_utils.py` to properly check if collections exist before attempting to delete them, preventing potential errors when collections don't exist.
- Improved error handling in the`_handle_dimension_mismatch` method in`embedding_service.py` by adding more robust exception handling and verification steps after reinitialization.
- Enhanced the collection initialization process in`embedding_service.py` to provide more detailed error messages and better handle cases where collections still have incorrect dimensions after reinitialization.
- Added additional verification steps to ensure that collection dimensions match the expected dimension after creation or retrieval.
- Improved logging throughout the code to provide more context in error messages, making debugging easier.
2025-04-22 10:27:34 +08:00
kevin-mindverse
e4f4fb695d print stack 2025-04-17 16:40:00 +08:00
kevin-mindverse
77cd46142d print stack 2025-04-17 16:37:36 +08:00
kevin-mindverse
737ff2564e fix/trainParameter 2025-04-17 16:05:39 +08:00
kevinaimonster
6118a133f1
Feat/optimize train process2 (#250)
* split train process service

* split train process service

* split train param

* save train param to file

---------

Co-authored-by: kevin-mindverse <kevin@mindverse.ai>
2025-04-17 11:41:33 +08:00
KKKKKKKevin
a5942c7095
feat: fix multi-upload (#230) 2025-04-16 21:22:53 +08:00
doubleBlack2
2483288348
Feature/embedding strategy (#235)
* Optimization of files Local Chat API.md and Public Chat API.md

* MCP sever

* Embedding strategy

* change name

* drop mcp files

* llm.py change
2025-04-16 19:40:11 +08:00
KKKKKKKevin
cedcf9917a
Feat/optimize process service (#247)
* split process_step

* optimize

* fix

* optimizeCode
2025-04-16 16:59:15 +08:00
ryangyuan
2359630257
Feat/0414/adjustment train option (#236)
* feat: adjuesment train

* feat:optimize code structure

* feat:optimize params name

* fix: adjustment train log

* fix: fix train failed status

* fix: chosen model error

* feat: adjustment train

---------

Co-authored-by: Ye Xiangle <yexiangle@mail.mindverse.ai>
Co-authored-by: kevin-mindverse <kevin@mindverse.ai>
2025-04-16 15:50:06 +08:00
kevin-mindverse
2ab854cc19 feat:move train service into a seperated dir 2025-04-16 14:57:20 +08:00
kevin-mindverse
e50fbc5737 feat:split train progress into two different files 2025-04-16 14:54:32 +08:00
kevin-mindverse
0d6194179b rename class 2025-04-16 14:45:47 +08:00
yexiangle
64dc1bba78
feat: add step generate_biography (#243) 2025-04-16 14:07:42 +08:00
kevin-mindverse
85cb97a606 feat: rename from Progress to TrainProgressHolder 2025-04-15 20:45:48 +08:00
kevin-mindverse
5db93decab feat:remove default value of fault value 2025-04-15 20:39:21 +08:00
kevin-mindverse
fad736ea56 fix:remove default value 2025-04-15 20:34:52 +08:00
yexiangle
bd64514048
optimize trainprocess (#239)
Co-authored-by: kevin-mindverse <kevin@mindverse.ai>
2025-04-15 20:29:22 +08:00
KKKKKKKevin
0e442ed17c
Fix/make meta data field optional (#237)
* fix:metadata to optional

* docker command check

* add exception stack
2025-04-15 19:51:33 +08:00
ryangyuan
000b39ac60
Fix: optimize progress order (#182)
* change progress order

* feat: change progress frontend type

* feat: update _load_progress for progress's new format

* fix: fix formatUnderscoreToName

* fix:simplify TrainProgress with direct JSON structure and mapping

* fix:add necessary accessors (getters and setters) to maintain compatibility with existing code while adopting the new data structure.

* fix: train log jump

* fix: fix current step update failed

* fix:fix stop problem

* fix trainprogress has no attribute status problem

* fix: merge master

---------

Co-authored-by: Ye Xiangle <yexiangle@mail.mindverse.ai>
2025-04-14 16:38:13 +08:00
Xiang Ying
834f391972
Feature/dpo support (#220)
* feat(DPO_support): add DPO workflow script and documentation

- Introduce dpo_pipeline.sh for automated DPO process execution.
- Add README with overview and getting started guide (auto & manual modes).
- Include steps for SFT model deployment, data synthesis, training, and LoRA weight merging.

* feat(DPO_support): update API key, global bio config, pipeline script, and README

- Enhanced security by refining API key management.
- Simplified global bio configuration process.
- Improved pipeline script initialization for better reliability.
- Updated README with comprehensive documentation.

* feat(feature/DPO_support): Translate Chinese comments and README to English

- Translated all Chinese comments in the script to English for better readability and consistency.
- Updated the project README to English to ensure clarity and accessibility for all contributors and users.

---------

Co-authored-by: mcx_gt <moral_compass24@163.com>
2025-04-14 15:18:42 +08:00
wiley
7caa368a9a
feat:Add the functionality to download from ModelScope when downloading from Hugging Face fails. (#213) 2025-04-14 13:22:42 +08:00
GoForceX
9ac11344b1
fix: Find correct llama-server location (#186) 2025-04-14 13:10:49 +08:00
yexiangle
4cbcc946aa
Adjustable Training Parameters & Checkpoint/Restore (#191)
* feat(trainprocess):add receive & get training params

* feat: support low/standard option for L2 data generate

* feat:improve training script invocation with direct bash command and internationalize comments

* fix: restore code

* feat: add error handling for GraphRAG index and modify model save frequency(epoch -> steps)

* feat: support low/medium/high mode for L2 data generation

* feat: set defaut value

* feat: add train params

* feat: use ScriptExecutor for training process and check return code

* fix: fix params round

* feat:use subprocess instead of script_executor to keep logs

* feat:hot fix name 'monitor_result' is not defined

* fix: delete useless message

* fix: fix params status

* feat: add status suspended

* feat:fix stop status

* fix: fix resume status

* fix: disable error

---------

Co-authored-by: Crabboss Mr <1123357821@qq.com>
Co-authored-by: ryangyuan <ryangyuan@mail.mindverse.ai>
2025-04-11 16:23:12 +08:00
KKKKKKKevin
4c71dce682
Feat: Remove conda from setup (#195)
* feat:remove conda from setup

* cool. more code about removing conda & env

* optimize script

* add python check

* optimize setup

* optimize setup

* add warning info

* optimize check

* add node check & npm check

* add cmake install suggestion

* add poetry suggestion

* add python command check

* add python tools

* add poetry

* add graphrag poetry install command optimization

* active poetry shell

* fix duplicated log

* avoid poetry multipul active

* add sqlite3 check

* optimize sqlite3 setup suggestion

* optimize

* add gitignore

* reverse compose detect
2025-04-10 19:39:26 +08:00