improvement(tools): optimize convert-pth-to-ggml#232
Closed
tpoisonooo wants to merge 3 commits intoggml-org:masterfrom
Closed
improvement(tools): optimize convert-pth-to-ggml#232tpoisonooo wants to merge 3 commits intoggml-org:masterfrom
tpoisonooo wants to merge 3 commits intoggml-org:masterfrom
Conversation
Author
|
cc @ggerganov |
Author
sw
reviewed
Mar 18, 2023
| import numpy as np | ||
| import torch | ||
| import argparse | ||
| import os |
Contributor
|
can you please update the readme? the choice "1" for ftype will no longer work. |
Contributor
|
This is almost a duplicate of #109 |
Member
|
Decided to go with #109 |
SamuelOliveirads
pushed a commit
to SamuelOliveirads/llama.cpp
that referenced
this pull request
Dec 29, 2025
…gml-org#232) * Give the user the option to override where model weights are stored * Fix ggml_nbytes() problem and cleanup For a tensor with zero elements ggml_nbytes() was returning uint64_t::max, and this was causing graph allocation failure. * Add timing info to CUDA graph evaluation * Add more timing info --------- Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
optimize convert tool with
argparseTested on 7B/30B models, it works well.
$ tree models/ models/ ├── 7B ├── llama-30B │ ├── ggml-model-f16.bin │ ├── ggml-model-f16.bin.1 │ ├── ggml-model-f16.bin.2 │ └── ggml-model-f16.bin.3 └── llama-7B ├── ggml-model.bin -> ggml-model-f16.bin ├── ggml-model-f16.bin └── ggml-model-f32.bin