Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
448e79a6
"pcdet/git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "5666ea676e50a68001ca5fb9b2348508ab4f2a1d"
Unverified
Commit
448e79a6
authored
Apr 25, 2025
by
Anant Sharma
Committed by
GitHub
Apr 25, 2025
Browse files
build: update cudarc dependency to crate version (#815)
parent
0e4fffbc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
13 deletions
+15
-13
Cargo.lock
Cargo.lock
+8
-7
Cargo.toml
Cargo.toml
+3
-3
lib/llm/Cargo.toml
lib/llm/Cargo.toml
+1
-1
lib/llm/src/kv/storage.rs
lib/llm/src/kv/storage.rs
+3
-2
No files found.
Cargo.lock
View file @
448e79a6
...
...
@@ -677,7 +677,7 @@ dependencies = [
"byteorder",
"candle-kernels 0.8.0",
"candle-metal-kernels",
"cudarc 0.13.9
(registry+https://github.com/rust-lang/crates.io-index)
",
"cudarc 0.13.9",
"float8",
"gemm 0.17.1",
"half",
...
...
@@ -702,7 +702,7 @@ checksum = "06ccf5ee3532e66868516d9b315f73aec9f34ea1a37ae98514534d458915dbf1"
dependencies = [
"byteorder",
"candle-kernels 0.8.4",
"cudarc 0.13.9
(registry+https://github.com/rust-lang/crates.io-index)
",
"cudarc 0.13.9",
"gemm 0.17.1",
"half",
"memmap2",
...
...
@@ -1151,8 +1151,9 @@ dependencies = [
[[package]]
name = "cudarc"
version = "0.13.9"
source = "git+https://github.com/coreylowman/cudarc.git?rev=8c52e735b55bf8e979e1a16bd85e3dfe4f87c9fe#8c52e735b55bf8e979e1a16bd85e3dfe4f87c9fe"
version = "0.16.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4ed411343abcb4dd6fd1fbc32db3533d76c2af0fd40735a9e5e39e778a81254"
dependencies = [
"libloading",
]
...
...
@@ -1612,7 +1613,7 @@ dependencies = [
"bytes",
"candle-core 0.8.4",
"chrono",
"cudarc 0.1
3.9 (git+https://github.com/coreylowman/cudarc.git?rev=8c52e735b55bf8e979e1a16bd85e3dfe4f87c9fe)
",
"cudarc 0.1
6.2
",
"derive-getters",
"derive_builder",
"dynamo-runtime",
...
...
@@ -2064,7 +2065,7 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dee36245af1dccf978103fcd393582806db2a1d0bcd2f38c663cdbb4a363a01c"
dependencies = [
"cudarc 0.13.9
(registry+https://github.com/rust-lang/crates.io-index)
",
"cudarc 0.13.9",
"half",
"num-traits",
"rand 0.9.0",
...
...
@@ -6805,7 +6806,7 @@ version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "50758486d7941f8b0a636ba7e29455c07071f41590beac1fd307ec893e8db69a"
dependencies = [
"cudarc 0.13.9
(registry+https://github.com/rust-lang/crates.io-index)
",
"cudarc 0.13.9",
"half",
"serde",
"thiserror 1.0.69",
...
...
Cargo.toml
View file @
448e79a6
...
...
@@ -37,9 +37,9 @@ keywords = ["llm", "genai", "inference", "nvidia", "distributed", "dynamo"]
[workspace.dependencies]
# Local crates
dynamo-runtime
=
{
path
=
"lib/runtime"
}
dynamo-llm
=
{
path
=
"lib/llm"
}
dynamo-tokens
=
{
path
=
"lib/tokens"
}
dynamo-runtime
=
{
path
=
"lib/runtime"
,
version
=
"0.1.1"
}
dynamo-llm
=
{
path
=
"lib/llm"
,
version
=
"0.1.1"
}
dynamo-tokens
=
{
path
=
"lib/tokens"
,
version
=
"0.1.1"
}
# External dependencies
anyhow
=
{
version
=
"1"
}
...
...
lib/llm/Cargo.toml
View file @
448e79a6
...
...
@@ -70,7 +70,7 @@ regex = "1"
rayon
=
"1"
# kv_cuda
cudarc
=
{
git
=
"https://github.com/coreylowman/cudarc.git"
,
rev
=
"8c52e735b55bf8e979e1a16bd85e3dfe4f87c9fe
"
,
features
=
["cuda-12040"]
,
optional
=
true
}
cudarc
=
{
version
=
"0.16.2
"
,
features
=
["cuda-12040"]
,
optional
=
true
}
ndarray
=
{
version
=
"0.16"
,
optional
=
true
}
# protocols
...
...
lib/llm/src/kv/storage.rs
View file @
448e79a6
...
...
@@ -205,8 +205,9 @@ impl DeviceStorageOwned {
}
pub
fn
device_ptr
(
&
self
)
->
*
const
c_void
{
let
ptr
=
self
.cuda_slice
.device_ptr
();
(
*
ptr
)
as
*
const
c_void
let
stream
=
self
.cuda_device
.default_stream
();
let
(
ptr
,
_
)
=
self
.cuda_slice
.device_ptr
(
&
stream
);
ptr
as
*
const
c_void
}
pub
fn
context
(
&
self
)
->
Arc
<
CudaContext
>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment