Git Product home page Git Product logo

Comments (6)

LaurentMazare avatar LaurentMazare commented on June 9, 2024 2

Hopefully we'll release 0.4.0 in the next few days.

from candle.

LaurentMazare avatar LaurentMazare commented on June 9, 2024

Version 0.4.0 should now be available on crates.io!

from candle.

edesalve avatar edesalve commented on June 9, 2024

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.

LaurentMazare avatar LaurentMazare commented on June 9, 2024

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.

edesalve avatar edesalve commented on June 9, 2024

@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.

edesalve avatar edesalve commented on June 9, 2024

Upgrading Cuda driver to >= 545 solves the issue.

from candle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.