[Improve] Use map_fn and collate_fn to manage dataset and dataloader #8
Merged
LZHgrla merged 7 commits intoInternLM:mainfrom Jul 21, 2023
LZHgrla:lzh/data
Merged
[Improve] Use map_fn and collate_fn to manage dataset and dataloader #8LZHgrla merged 7 commits intoInternLM:mainfrom LZHgrla:lzh/data
LZHgrla merged 7 commits intoInternLM:mainfrom
LZHgrla:lzh/data
Conversation
llkn-2
pushed a commit
to llkn-2/xtuner
that referenced
this pull request
Jul 31, 2024
…nternLM#8) * use global constants * refactor dataset map_fn * refactor collate_fn * fix bugs * add mmlu collator * add default pad_token_id for tokenizer * use print_log
HIT-cwh
added a commit
to HIT-cwh/xtuner
that referenced
this pull request
Aug 5, 2024
* support llama3.1 * fix load jsonl * fix build_llm_model: set attn_implementation and torch_dtype
jayhenry
added a commit
to jayhenry/xtuner
that referenced
this pull request
Mar 23, 2026
…mparison
- Add generate_stress_pack_config: greedy packing with uniform [200,16000] token lengths
- Add _MockDataset: satisfies JsonlDataset interface without file I/O
- Add TestStress with 3 tests:
- test_generate_stress_pack_config: validates NPY directory output
- test_multiprocess_getitem: 8 fork'd processes with random index sampling,
reports init time, RSS/PSS deltas, and __getitem__ latency per rank
- test_mmap_memory_saving: two subprocesses compare load_config RSS/PSS/elapsed
for mmap=True (0.2MB, 0.7ms) vs mmap=False (24MB, 7.5ms)
- Updated feature_list.json: marked feature InternLM#8 as passing (8/8 complete)
Made-with: Cursor
jayhenry
added a commit
to jayhenry/xtuner
that referenced
this pull request
Mar 23, 2026
…mparison
- Add generate_stress_pack_config: greedy packing with uniform [200,16000] token lengths
- Add _MockDataset: satisfies JsonlDataset interface without file I/O
- Add TestStress with 3 tests:
- test_generate_stress_pack_config: validates NPY directory output
- test_multiprocess_getitem: 8 fork'd processes with random index sampling,
reports init time, RSS/PSS deltas, and __getitem__ latency per rank
- test_mmap_memory_saving: two subprocesses compare load_config RSS/PSS/elapsed
for mmap=True (0.2MB, 0.7ms) vs mmap=False (24MB, 7.5ms)
- Updated feature_list.json: marked feature InternLM#8 as passing (8/8 complete)
Made-with: Cursor
jayhenry
added a commit
to jayhenry/xtuner
that referenced
this pull request
Mar 23, 2026
…mparison
- Add generate_stress_pack_config: greedy packing with uniform [200,16000] token lengths
- Add _MockDataset: satisfies JsonlDataset interface without file I/O
- Add TestStress with 3 tests:
- test_generate_stress_pack_config: validates NPY directory output
- test_multiprocess_getitem: 8 fork'd processes with random index sampling,
reports init time, RSS/PSS deltas, and __getitem__ latency per rank
- test_mmap_memory_saving: two subprocesses compare load_config RSS/PSS/elapsed
for mmap=True (0.2MB, 0.7ms) vs mmap=False (24MB, 7.5ms)
- Updated feature_list.json: marked feature InternLM#8 as passing (8/8 complete)
Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is based on open-mmlab/mmengine#1262