summaryrefslogtreecommitdiff
path: root/candle-examples/examples/bigcode/README.md
blob: cb4e79b1af035d4ea596d38855b936ca3c744a45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# candle-starcoder: code generation model

[StarCoder/BigCode](https://huggingface.co/bigcode/starcoderbase-1b) is a LLM
model specialized to code generation. The initial model was trained on 80
programming languages.

## Running some example

```bash
cargo run --example bigcode --release -- --prompt "fn fact(n: u64) -> u64 "

> fn fact(n: u64) -> u64  {
>     if n == 0 {
>         1
>     } else {
>         n * fact(n - 1)
>     }
> }
```