Skip to content

feat: 兼容Gpt2 分词器#2

Merged
YdrMaster merged 1 commit intoInfiniTensor:devfrom
onenewcode:refactor_gpt2
May 9, 2025
Merged

feat: 兼容Gpt2 分词器#2
YdrMaster merged 1 commit intoInfiniTensor:devfrom
onenewcode:refactor_gpt2

Conversation

@onenewcode
Copy link

No description provided.

@YdrMaster YdrMaster changed the base branch from main to dev May 9, 2025 08:20
@YdrMaster YdrMaster merged commit e64777e into InfiniTensor:dev May 9, 2025
1 of 2 checks passed
}
Err(_) => Tokeneer::new(Bpe::new(
vocabs,
std::iter::repeat(0.0).take(token_len),

Check failure

Code scanning / clippy

this repeat().take() can be written more concisely Error

this repeat().take() can be written more concisely
}
Err(_) => Tokeneer::new(Bpe::new(
vocabs,
std::iter::repeat(0.0).take(token_len),

Check failure

Code scanning / clippy

this repeat().take() can be written more concisely Error

this repeat().take() can be written more concisely
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.

2 participants