Closed
Description
Here's my log
PS C:\...> cargo run
Compiling wgpu-core v0.19.4
Compiling burn-jit v0.13.2
Compiling burn-ndarray v0.13.2
Compiling hf-hub v0.4.1
error[E0599]: no function or associated item named `create_new` found for struct `tokio::fs::File` in the current scope
--> C:\Users\impor\.cargo\registry\src\index.crates.io-6f17d22bba15001f\hf-hub-0.4.1\src\api\tokio.rs:82:32
|
82 | match tokio::fs::File::create_new(path.clone()).await {
| ^^^^^^^^^^ function or associated item not found in `File`
|
note: if you're trying to build a new `tokio::fs::File`, consider using `tokio::fs::File::from_std` which returns `tokio::fs::File`
--> C:\Users\impor\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.37.0\src\fs\file.rs:237:5
|
237 | pub fn from_std(std: StdFile) -> File {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: there is an associated function `create` with a similar name
|
82 | match tokio::fs::File::create(path.clone()).await {
| ~~~~~~
For more information about this error, try `rustc --explain E0599`.
error: could not compile `hf-hub` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Here's my cargo.toml
[package]
name = "gpt-burn"
version = "0.1.0"
edition = "2021"
[dependencies]
burn = { version = "0.13", features = [
"fusion",
"ndarray",
"train",
"vision",
"wgpu",
] }
bincode = "1"
clap = { version = "4", features = ["derive"] }
indicatif = { version = "0.17", features = ["rayon"] }
rand = "0.8"
rayon = "1"
serde = { version = "1", features = ["derive"] }
candle-datasets = "0.8.2"
Metadata
Metadata
Assignees
Labels
No labels