Skip to content

Bump mgds pin to latest master (fixes tokenizer thread-safety race) - #1587

Merged
dxqb merged 2 commits into
Nerogar:mergefrom
dxqb:bump-mgds-tokenizer-lock-fix
Jul 5, 2026
Merged

Bump mgds pin to latest master (fixes tokenizer thread-safety race)#1587
dxqb merged 2 commits into
Nerogar:mergefrom
dxqb:bump-mgds-tokenizer-lock-fix

Conversation

@dxqb

@dxqb dxqb commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bumps the mgds git pin from 9320a69 to 3a6994a (latest Nerogar/mgds master).
  • Picks up Nerogar/mgds#59, a fix for a thread-unsafe fast tokenizer race (RuntimeError: Already borrowed) that surfaced training Krea 2 with multiple dataloader threads. Fast tokenizers mutate shared Rust-side state on every call, which isn't safe when the same tokenizer instance is called concurrently; the fix adds a lock around the tokenizer calls in Tokenize.get_item.

Drafted by Claude

Picks up the fix for a thread-unsafe fast tokenizer race
(RuntimeError: Already borrowed) that showed up training Krea 2,
plus EncodeAnimaText, Krea2, and EncodeIdeogramText module additions.
@dxqb
dxqb changed the base branch from master to merge July 5, 2026 11:39
@dxqb
dxqb merged commit 0373945 into Nerogar:merge Jul 5, 2026
1 check passed
@dxqb
dxqb deleted the bump-mgds-tokenizer-lock-fix branch July 5, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant