crabml-llama2 0.1.0

crabml llama2 support
Build #1145538 2024-03-02T12:43:22.062324+00:00
# rustc version
rustc 1.78.0-nightly (2dceda4f3 2024-03-01)# docs.rs version
docsrs 0.6.0 (60738ee7 2024-03-02)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/crabml-llama2-0.1.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/crabml-llama2-0.1.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20240301-1.78.0-nightly-2dceda4f3\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] b505e03bf7903d49d910609e379ee62f97af4e65968ba79875bf936c5c32d01a
[INFO] running `Command { std: "docker" "start" "-a" "b505e03bf7903d49d910609e379ee62f97af4e65968ba79875bf936c5c32d01a", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]     Checking crabml v0.1.0
[INFO] [stderr] error[E0432]: unresolved import `std::simd::SimdFloat`
[INFO] [stderr]  --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/crabml-0.1.0/src/backends/cpu/primitives/rms_norm.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::simd::SimdFloat;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^ no `SimdFloat` in `simd`
[INFO] [stderr]   |
[INFO] [stderr] help: a similar name exists in the module
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::simd::StdFloat;
[INFO] [stderr]   |                ~~~~~~~~
[INFO] [stderr] help: consider importing one of these items instead
[INFO] [stderr]   |
[INFO] [stderr] 3 | use core::simd::prelude::SimdFloat;
[INFO] [stderr]   |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stderr] 3 | use std::simd::prelude::SimdFloat;
[INFO] [stderr]   |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stderr] 
[INFO] [stderr] error[E0635]: unknown feature `stdsimd`
[INFO] [stderr]  --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/crabml-0.1.0/src/lib.rs:3:12
[INFO] [stderr]   |
[INFO] [stderr] 3 | #![feature(stdsimd)]
[INFO] [stderr]   |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `reduce_sum` found for struct `Simd` in the current scope
[INFO] [stderr]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/crabml-0.1.0/src/backends/cpu/primitives/rms_norm.rs:36:18
[INFO] [stderr]     |
[INFO] [stderr] 36  |         sum += v.reduce_sum();
[INFO] [stderr]     |                  ^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]    ::: /opt/rustwide/rustup-home/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/../../portable-simd/crates/core_simd/src/simd/num/float.rs:169:8
[INFO] [stderr]     |
[INFO] [stderr] 169 |     fn reduce_sum(self) -> Self::Scalar;
[INFO] [stderr]     |        ---------- the method is available for `Simd<f32, 32>` here
[INFO] [stderr]     |
[INFO] [stderr]     = help: items from traits can only be used if the trait is in scope
[INFO] [stderr] help: trait `SimdFloat` which provides `reduce_sum` is implemented but not in scope; perhaps you want to import it
[INFO] [stderr]     |
[INFO] [stderr] 1   + use std::simd::num::SimdFloat;
[INFO] [stderr]     |
[INFO] [stderr] help: there is a method `reduce_max` with a similar name
[INFO] [stderr]     |
[INFO] [stderr] 36  |         sum += v.reduce_max();
[INFO] [stderr]     |                  ~~~~~~~~~~
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0432, E0599, E0635.
[INFO] [stderr] For more information about an error, try `rustc --explain E0432`.
[INFO] [stderr] error: could not compile `crabml` (lib) due to 3 previous errors
[INFO] running `Command { std: "docker" "inspect" "b505e03bf7903d49d910609e379ee62f97af4e65968ba79875bf936c5c32d01a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b505e03bf7903d49d910609e379ee62f97af4e65968ba79875bf936c5c32d01a", kill_on_drop: false }`
[INFO] [stdout] b505e03bf7903d49d910609e379ee62f97af4e65968ba79875bf936c5c32d01a