Skip to content

Commit 3347dd2

Browse files
authored
make sure the model name is always lowcase (#37)
Signed-off-by: kerthcet <kerthcet@gmail.com>
1 parent e9eeac6 commit 3347dd2

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,27 @@
2323

2424
## Installation
2525

26+
### Install with Cargo
27+
2628
```bash
27-
make build
29+
cargo install puma
2830
```
2931

30-
The binary will be available as `./puma`.
32+
### Build from Source
33+
34+
**Prerequisites:** Rust 1.70+ and Make
35+
36+
```bash
37+
# Clone the repository
38+
git clone https://github.com/InftyAI/PUMA.git
39+
cd PUMA
40+
41+
# Build the binary
42+
make build
43+
44+
# The binary will be available at ./puma
45+
./puma --version
46+
```
3147

3248
## Quick Start
3349

src/cli/commands.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ pub async fn run(cli: Cli) {
156156
Commands::PULL(args) => match args.provider {
157157
Provider::Huggingface => {
158158
let downloader = HuggingFaceDownloader::new();
159-
if let Err(e) = downloader.download_model(&args.model).await {
159+
// Make sure to use lowercase for model name to ensure consistent caching and registry entries.
160+
if let Err(e) = downloader.download_model(&args.model.to_lowercase()).await {
160161
eprintln!("❌ Error downloading model: {}", e);
161162
std::process::exit(1);
162163
}

0 commit comments

Comments
 (0)