Skip to content

Commit

Permalink
fix: clarify usage
Browse files Browse the repository at this point in the history
Signed-off-by: thxCode <[email protected]>
  • Loading branch information
thxCode committed Jun 16, 2024
1 parent 307d2af commit 115e016
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cmd/gguf-parser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ $ gguf-parser --repo="NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO-GGUF" --file="
+ + + + + +----------------+ +------------+-------------+
| | | | | | 25 | | 5.91 GiB | 21.42 GiB |
+ + + + + +----------------+ +------------+-------------+
| | | | | | 30 | | 2.04 GiB | 25.29 GiB |
+ + + + + +----------------+ +------------+-------------+
| | | | | | 32 | | 395.24 MiB | 26.94 GiB |
+----------+-------+--------------+-----------------+--------------+----------------+-----------+------------+-------------+
Expand Down
12 changes: 10 additions & 2 deletions cmd/gguf-parser/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ func main() {
offloadLayersStep = e.OffloadLayers
}
if offloadLayersStep < e.OffloadLayers {
ess := make([]LLaMACppUsageEstimateMemorySummary, e.OffloadLayers/offloadLayersStep+1)
cnt := e.OffloadLayers/offloadLayersStep + 1
if e.OffloadLayers%offloadLayersStep != 0 {
cnt++
}
ess := make([]LLaMACppUsageEstimateMemorySummary, cnt)
var wg sync.WaitGroup
for i := 0; i < cap(ess); i++ {
wg.Add(1)
Expand Down Expand Up @@ -317,7 +321,11 @@ func main() {
offloadLayersStep = e.OffloadLayers
}
if offloadLayersStep < e.OffloadLayers {
ess := make([]LLaMACppUsageEstimateMemorySummary, e.OffloadLayers/offloadLayersStep+1)
cnt := e.OffloadLayers/offloadLayersStep + 1
if e.OffloadLayers%offloadLayersStep != 0 {
cnt++
}
ess := make([]LLaMACppUsageEstimateMemorySummary, cnt)
var wg sync.WaitGroup
for i := 0; i < cap(ess); i++ {
wg.Add(1)
Expand Down

0 comments on commit 115e016

Please sign in to comment.