From 47a5bee24948dcffaa6cc03835c7d28bf07e7d9e Mon Sep 17 00:00:00 2001 From: choisi Date: Wed, 9 Aug 2023 11:29:48 +0800 Subject: [PATCH] fix repo link --- README.md | 2 +- candle-book/src/guide/hello_world.md | 6 +++--- candle-book/src/guide/installation.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f0cdb332..c8622b88 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ And then browse to - Distributed computing using NCCL. - Models out of the box: Llama, Whisper, Falcon, StarCoder... - Embed user-defined ops/kernels, such as [flash-attention - v2](https://github.com/LaurentMazare/candle/blob/89ba005962495f2bfbda286e185e9c3c7f5300a3/candle-flash-attn/src/lib.rs#L152). + v2](https://github.com/huggingface/candle/blob/89ba005962495f2bfbda286e185e9c3c7f5300a3/candle-flash-attn/src/lib.rs#L152). diff --git a/candle-book/src/guide/hello_world.md b/candle-book/src/guide/hello_world.md index a9767d5f..5b32181d 100644 --- a/candle-book/src/guide/hello_world.md +++ b/candle-book/src/guide/hello_world.md @@ -128,17 +128,17 @@ fn main() -> Result<()> { ``` Now it works, it is a great way to create your own layers. -But most of the classical layers are already implemented in [candle-nn](https://github.com/LaurentMazare/candle/tree/main/candle-nn). +But most of the classical layers are already implemented in [candle-nn](https://github.com/huggingface/candle/tree/main/candle-nn). ## Using `candle_nn`. -For instance [Linear](https://github.com/LaurentMazare/candle/blob/main/candle-nn/src/linear.rs) is already there. +For instance [Linear](https://github.com/huggingface/candle/blob/main/candle-nn/src/linear.rs) is already there. This Linear is coded with PyTorch layout in mind, to reuse better existing models out there, so it uses the transpose of the weights and not the weights directly. So instead we can simplify our example: ```bash -cargo add --git https://github.com/LaurentMazare/candle.git candle-nn +cargo add --git https://github.com/huggingface/candle.git candle-nn ``` And rewrite our examples using it diff --git a/candle-book/src/guide/installation.md b/candle-book/src/guide/installation.md index c909a5df..d2086e0c 100644 --- a/candle-book/src/guide/installation.md +++ b/candle-book/src/guide/installation.md @@ -5,13 +5,13 @@ Start by creating a new app: ```bash cargo new myapp cd myapp -cargo add --git https://github.com/LaurentMazare/candle.git candle +cargo add --git https://github.com/huggingface/candle.git candle-core ``` At this point, candle will be built **without** CUDA support. To get CUDA support use the `cuda` feature ```bash -cargo add --git https://github.com/LaurentMazare/candle.git candle --features cuda +cargo add --git https://github.com/huggingface/candle.git candle-core --features cuda ``` You can check everything works properly: