diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2023-08-12 17:45:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-12 16:45:58 +0100 |
commit | 972078e1ae7b90e5b5ec275f87cf1c455c271489 (patch) | |
tree | 3d83c0457c07c0cbee89d2dcf0ae6536204b3938 /README.md | |
parent | 16b89f5b836b9afd7883fa0bc7280116c54cb440 (diff) | |
download | candle-972078e1ae7b90e5b5ec275f87cf1c455c271489.tar.gz candle-972078e1ae7b90e5b5ec275f87cf1c455c271489.tar.bz2 candle-972078e1ae7b90e5b5ec275f87cf1c455c271489.zip |
Update the readme with the discord server and common errors. (#423)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -1,4 +1,5 @@ # candle +[](https://discord.com/channels/879548962464493619/1136218819447238726) [](https://crates.io/crates/candle-core) [](https://docs.rs/candle-core)  @@ -135,7 +136,9 @@ Finally, Rust is cool! A lot of the HF ecosystem already has Rust crates, like [ bring in the entire torch library into the runtime. The main contributor of `tch-rs` is also involved in the development of `candle`. -### Missing symbols when compiling with the mkl feature. +### Common Errors + +#### Missing symbols when compiling with the mkl feature. If you get some missing symbols when compiling binaries/tests using the mkl features, e.g.: @@ -154,7 +157,19 @@ can try adding the following at the top of your binary: extern crate intel_mkl_src; ``` -### Tracking down errors +#### Cannot run llama example : access to source requires login credentials + +``` +Error: request error: https://huggingface.co/meta-llama/Llama-2-7b-hf/resolve/main/tokenizer.json: status code 401 +``` + +This is likely because you're not permissioned for the llama-v2 model. To fix +this, you have to register on the huggingface-hub, accept the [llama-v2 model +conditions](https://huggingface.co/meta-llama/Llama-2-7b-hf), and set up your +authentication token. See issue +[#350](https://github.com/huggingface/candle/issues/350) for more details. + +#### Tracking down errors You can set `RUST_BACKTRACE=1` to be provided with backtraces when a candle error is generated. |