1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
hf-fetch-model emits structured `tracing` events at `debug` level to help diagnose download performance.
Use the `--verbose` / `-v` flag:
```sh
hf-fm google/gemma-2-2b-it -v
```
Initialize a `tracing-subscriber` at `debug` level:
```rust
// Via RUST_LOG environment variable
// RUST_LOG=hf_fetch_model=debug cargo run
// Or programmatically
tracing_subscriber::fmt()
```
```
DEBUG hf_fetch_model: listing repository files repo_id="allenai/OLMo-1B-hf"
DEBUG hf_fetch_model: metadata fetch succeeded files_with_size=8 total_files=8
DEBUG hf_fetch_model: merged plan-recommended settings concurrency=4 connections_per_file=8 chunk_threshold=104857600
DEBUG hf_fetch_model: download settings (after plan optimization) total_files=8 concurrency=4
DEBUG hf_fetch_model: chunked download (multi-connection) filename="model.safetensors" size_mib=2475 connections=8
DEBUG hf_fetch_model: single-connection download (below chunk threshold) filename="config.json" size_mib=0
DEBUG hf_fetch_model: download complete filename="model.safetensors" elapsed_secs="23.1" throughput_mbps="857.2"
DEBUG hf_fetch_model: download complete files_downloaded=8 files_failed=0 total_elapsed_secs="24.3"
```