Skip to content

Conversation

@skeet70
Copy link

@skeet70 skeet70 commented Dec 23, 2025

These are the changes I needed to run the ONNX version of Piiranha, which is debertaV3 based. I've since noticed that the debertaV2 model already in Candle also supports debertaV3, so I'm likely going to switch to using that, but thought the changes may be useful. Let me know if a subset is desired, I can cut it down to a smaller PR.

Adds operations:

  • Add
  • Or
  • Tile
  • LessOrEqual
  • GreaterOrEqual

Also adds and uses helpers to_scalar_flexible and to_vec0_flexible that both allow for more broad input definitions that fit what some onnx models export and are still scalar/vec0 but not "true" versions of them because the model didn't squeeze them.

Adds operations:
- Add
- Or
- Tile
- LessOrEqual
- GreaterOrEqual

Adds helpers `to_scalar_flexible` and `to_vec0_flexible` that both
allow for more broad input definitions that fit what some onnx models export
and are still scalar/vec0 but not "true" versions of them because the
model didn't squeeze them.
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