DeepSpeed
DeepSpeed copied to clipboard
Rearrange inference OPS and stop using builder.load
This PR mainly handles all places where InferenceBuilder is used to access any op or a specific implementation for an op. Instead an op is defined, and its proper implementation is picked inside and the usage will be transparent to the user. What was done in the PR:
- Added missing ops (added a py file with fallback mechanism)
- Added missing fallback implementations for existing ops
- removed all usages for builder.load and replaced them with ops instead.
- added workspace op and inferenceContext which contains all workspace related functions and inferenceContext is the python fallback of inferenceContext in CUDA
- a small change to softmax_context signature to fit the fallback signature.
Hi @oelayan7 - thanks for the contribution, could you take a look at the failing tests?
Kicked off a manual run of the nv-ds-chat GH workflow since this PR modifies the Hybrid Engine:
https://github.com/microsoft/DeepSpeed/actions/runs/9199337454
@loadams, @jomayeri, FYI.
@loadams @lekurile it is fixed now, can you please trigger the unit tests?
@loadams @lekurile it is fixed now, can you please trigger the unit tests?
Hi @oelayan7, kicked off the unit tests.
@loadams Can you please trigger the CI (hopefully the last time :) )
@loadams Can you please trigger the CI (hopefully the last time :) )
@oelayan7 - CI failures appear to be real for a few things if you could take a look
@loadams Can you please trigger the CI (hopefully the last time :) )
@oelayan7 - CI failures appear to be real for a few things if you could take a look
@loadams you were right, there were two minor issues and they were fixed.
@loadams @arashb @tjruwase @mrwyattii @awan-10 Can anyone trigger the unit-tests please?
@loadams @arashb @tjruwase @mrwyattii @awan-10 Can anyone trigger the unit-tests please?
Yes, though we have a known issue in CI now, so some tests will still not run.
@loadams @arashb @tjruwase @mrwyattii @awan-10 Can anyone trigger the unit-tests please?
Yes, though we have a known issue in CI now, so some tests will still not run.
@oelayan7 - we've fixed CI now, your PR should be able to be merged after a successful review
@oelayan7 - I've got to push a fix for nv-accelerate tests, will get this merged shorlty.