mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 18:48:51 +00:00
Bump the ug dependency. (#2720)
* Bump the ug dependency. * Fix some test. * Fix the ug test.
This commit is contained in:
@ -70,9 +70,9 @@ tokenizers = { version = "0.19.1", default-features = false }
|
|||||||
tracing = "0.1.37"
|
tracing = "0.1.37"
|
||||||
tracing-chrome = "0.7.1"
|
tracing-chrome = "0.7.1"
|
||||||
tracing-subscriber = "0.3.7"
|
tracing-subscriber = "0.3.7"
|
||||||
ug = "0.0.2"
|
ug = "0.1.0"
|
||||||
ug-cuda = "0.0.2"
|
ug-cuda = "0.1.0"
|
||||||
ug-metal = "0.0.2"
|
ug-metal = "0.1.0"
|
||||||
yoke = { version = "0.7.2", features = ["derive"] }
|
yoke = { version = "0.7.2", features = ["derive"] }
|
||||||
zip = { version = "1.1.1", default-features = false }
|
zip = { version = "1.1.1", default-features = false }
|
||||||
metal = { version = "0.27.0", features = ["mps"]}
|
metal = { version = "0.27.0", features = ["mps"]}
|
||||||
|
@ -158,7 +158,7 @@ fn ug_op() -> Result<()> {
|
|||||||
let st = op::store(ptr.id(), layout, src)?;
|
let st = op::store(ptr.id(), layout, src)?;
|
||||||
let kernel = op::Kernel::new("exp".to_string(), vec![ptr], vec![st]);
|
let kernel = op::Kernel::new("exp".to_string(), vec![ptr], vec![st]);
|
||||||
let opts: ug::lower_op::Opts = Default::default();
|
let opts: ug::lower_op::Opts = Default::default();
|
||||||
kernel.lower(&opts.with_global(0, 12))?
|
kernel.lower(&opts)?
|
||||||
};
|
};
|
||||||
let device = if candle_core::utils::cuda_is_available() {
|
let device = if candle_core::utils::cuda_is_available() {
|
||||||
Device::new_cuda(0)?
|
Device::new_cuda(0)?
|
||||||
|
Reference in New Issue
Block a user