Skip to content

Commit

Permalink
docs: update README.md and xtask help
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <[email protected]>
  • Loading branch information
YdrMaster committed Apr 28, 2024
1 parent 075d261 commit 74c896a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# 手写 transformer 模型

![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/InfiniTensor/transformer-rs)
![GitHub Issues or Pull Requests](https://img.shields.io/github/issues-pr/InfiniTensor/transformer-rs)
![GitHub repo size](https://img.shields.io/github/repo-size/InfiniTensor/transformer-rs)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/InfiniTensor/transformer-rs)
![GitHub contributors](https://img.shields.io/github/contributors/InfiniTensor/transformer-rs)
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/InfiniTensor/transformer-rs)

[YdrMaster/llama2.rs](https://github.com/YdrMaster/llama2.rs) 发展来的手写 transformer 模型项目。

## 使用
Expand Down Expand Up @@ -57,5 +64,3 @@ cargo generate --model <model> --prompt <prompt>
- `prompt`: 生成文本的开头;

其他参数参见 `cargo generate --help`


2 changes: 1 addition & 1 deletion xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct InferenceArgs {
top_p: Option<f32>,

#[cfg(feature = "nvidia")]
/// Use Nvidia GPU.
/// Use Nvidia GPU, specify device IDs separated by comma, e.g. `0` or `0,1`.
#[clap(long)]
nvidia: Option<String>,
}
Expand Down

0 comments on commit 74c896a

Please sign in to comment.