Comments (6)
Hopefully we'll release 0.4.0 in the next few days.
from candle.
Version 0.4.0 should now be available on crates.io!
from candle.
Hi @LaurentMazare, I believe that the version published on crates.io doesn't include the latest upgrades (cuda inference for quantized models).
Moreover there seems to be some issues with the version published during cuda tensors loading:
Cuda(Load { cuda: DriverError(CUDA_ERROR_UNSUPPORTED_PTX_VERSION, "the provided PTX was compiled with an unsupported toolchain."), module_name: "cast_u32_f32" })
My system:
Default host: x86_64-unknown-linux-gnu
rustup home: /home/ubuntu/.rustup
stable-x86_64-unknown-linux-gnu (default)
rustc 1.75.0 (82e1608df 2023-12-21)
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Wed_Nov_22_10:17:15_PST_2023
Cuda compilation tools, release 12.3, V12.3.107
Build cuda_12.3.r12.3/compiler.33567101_0
Thank you.
from candle.
I don't think the UNSUPPORTED_PTX_VERSION
has much to do with the release, it seems more like a mismatch between the nvcc
compiler and cuda toolchain vs the actual driver on your host.
Also I think this includes the latest upgrades of cuda inference with quantized model, e.g. this line was part of the change. Could you provide some code that doesn't work with this version and you would expect to work?
from candle.
@LaurentMazare you're right, the latest upgrades are included, sorry for the oversight.
Concerning the problem it appears that the problem is when tensor.to_dtype()
is called. I tried building different model and the same error appears, here is an example from mistral:
let inv_freq = Tensor::from_vec(inv_freq, (1, inv_freq_len), dev)?.to_dtype(dtype)?
that gives: Cuda(Load { cuda: DriverError(CUDA_ERROR_UNSUPPORTED_PTX_VERSION, "the provided PTX was compiled with an unsupported toolchain."), module_name: "cast_f32_bf16" })
.
The problem arises only when device is cuda. With the previous version 0.3.3 all works fine.
from candle.
Upgrading Cuda driver to >= 545 solves the issue.
from candle.
Related Issues (20)
- inefficient implementation of gelu for fp16 HOT 4
- Recent revision for contiguous check has problems HOT 14
- Error When Running Stable-Diffusion Example HOT 3
- Writing up a "Contributing" guide HOT 3
- How to get different outputs for the same prompt? HOT 4
- How to run inference of a (very) large model across mulitple GPUs ? HOT 2
- does candle support nvidia 2080ti on windows 11? HOT 2
- Metavoice with quantized model - "Non contiguous rmsnorm is not implemented" - on M1 Max using metal HOT 2
- How to specify which graphics card to run a task on in a server with multiple graphics cards? HOT 2
- Flash attention 2 support ? HOT 2
- Could someone please explain why this is happening? (batcher.rs seq_len:4294967040) HOT 1
- The output diverges in comparison to the Python implementation. HOT 5
- Running models with different precisions HOT 8
- How to use CUDA as the backend in `candle-wasm-examples/llama2-c` ? HOT 2
- Support for tensors with 0-length dimensions
- Unsound usages of unsafe function `slice::from_raw_parts` HOT 2
- Error: DriverError(CUDA_ERROR_NOT_FOUND, "named symbol not found") when loading cast_f32_bf16 HOT 3
- Falcon example seems broken (on metal) HOT 3
- Error: DriverError(CUDA_ERROR_OUT_OF_MEMORY, "out of memory") with multiple GPU HOT 2
- wait_until_completed is not working for metal device HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from candle.