Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTypeMismatchBinaryOp on add w/ mixtral #728

Closed
wseaton opened this issue Aug 30, 2024 · 5 comments
Closed

DTypeMismatchBinaryOp on add w/ mixtral #728

wseaton opened this issue Aug 30, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@wseaton
Copy link
Contributor

wseaton commented Aug 30, 2024

Describe the bug

Loading Mixtral-8x22b on 8xA100s via ISQ at Q8_0, model loads, and then at first token we get:

2024-08-30T16:00:20.769043Z ERROR mistralrs_core::engine: prompt step - Model failed with error: WithBacktrace { inner: DTypeMismatchBinaryOp { lhs: BF16, rhs: F32, op: "add" }, backtrace: Backtrace [{ fn: "candle_core::error::Error::bt" }, { fn: "candle_core::storage::Storage::same_dtype" }, { fn: "candle_core::tensor::Tensor::add" }, { fn: "mistralrs_core::models::mixtral::Model::forward" }, { fn: "<mistralrs_core::models::mixtral::Model as mistralrs_core::pipeline::loaders::normal_loaders::NormalModel>::forward" }, { fn: "<mistralrs_core::pipeline::normal::NormalPipeline as mistralrs_core::pipeline::Pipeline>::forward_inputs" }, { fn: "mistralrs_core::pipeline::Pipeline::step::{{closure}}" }, { fn: "mistralrs_core::engine::Engine::run::{{closure}}" }, { fn: "std::sys::backtrace::__rust_begin_short_backtrace" }, { fn: "core::ops::function::FnOnce::call_once{{vtable.shim}}" }, { fn: "std::sys::pal::unix::thread::Thread::new::thread_start" }, { fn: "start_thread" }, { fn: "...
thread '<unnamed>' panicked at mistralrs-core/src/engine/mod.rs:219:25:
called `Result::unwrap()` on an `Err` value: SendError { .. }
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::result::unwrap_failed
3: mistralrs_core::engine::Engine::run::{{closure}}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Latest commit or version

cfc0fa7

@wseaton wseaton added the bug Something isn't working label Aug 30, 2024
@wseaton
Copy link
Contributor Author

wseaton commented Aug 30, 2024

Worth noting with HQQ8 I get a similar (but distinct) engine error:

2024-08-30T16:50:01.494400Z ERROR mistralrs_core::engine: prompt step - Model failed with error: WithBacktrace { inner: DTypeMismatchBinaryOp { lhs: BF16, rhs: F32, op: "mul" }, backtrace: Backtrace [{ fn: "candle_core::error::Error::bt" }, { fn: "candle_core::storage::Storage::same_dtype" }, { fn: "candle_core::tensor::Tensor::mul" }, { fn: "candle_core::tensor::Tensor::broadcast_mul" }, { fn: "mistralrs_core::models::mixtral::Model::forward" }, { fn: "<mistralrs_core::models::mixtral::Model as mistralrs_core::pipeline::loaders::normal_loaders::NormalModel>::forward" }, { fn: "<mistralrs_core::pipeline::normal::NormalPipeline as mistralrs_core::pipeline::Pipeline>::forward_inputs" }, { fn: "mistralrs_core::pipeline::Pipeline::step::{{closure}}" }, { fn: "mistralrs_core::engine::Engine::run::{{closure}}" }, { fn: "std::sys::backtrace::__rust_begin_short_backtrace" }, { fn: "core::ops::function::FnOnce::call_once{{vtable.shim}}" }, { fn: "std::sys::pal::unix::thread::Thread:...

@EricLBuehler
Copy link
Owner

Hi @wseaton! Thanks for reporting this. I'm not exactly sure where this is occurring, but I think there may still be some error here. I just added #730, can you please confirm if this fixes the issue?

@EricLBuehler
Copy link
Owner

@wseaton this is fixed now after I merged #730. Closing now, please feel free to reopen!

@wseaton
Copy link
Contributor Author

wseaton commented Sep 3, 2024

ISQ is working now for mixtral, but I am running into an error similar to: #715. This happens upon first completion request.

@EricLBuehler
Copy link
Owner

@wseaton thanks for letting me know, I'll take a look at #715.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants