mtb0x1 / llama2.rs.wasm Goto Github PK
View Code? Open in Web Editor NEWllama2-wasm using rust
License: MIT License
llama2-wasm using rust
License: MIT License
Error details
Run cargo install wasm-pack
Updating crates.io index
error: binary `wasm-pack` already exists in destination
Add --force to overwrite
Error: Process completed with exit code 101
Running the code below in browser after compiling it to wasm, results in an error. (src :
llama2.rs.wasm/port1/src/lib.rs
Lines 551 to 559 in ee1034c
Code :
use rayon_wasm::ThreadPoolBuilder;
let cpus_in_use =5;
ThreadPoolBuilder::new()
.num_threads(cpus_in_use)
.build_global()
.unwrap();
Result :
value: ThreadPoolBuildError { kind: IOError(Error { kind: Unsupported, message: "operation not supported on this platform" }) }
Related : rayon-rs/rayon#1081
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.