-
Notifications
You must be signed in to change notification settings - Fork 12.1k
convert-*.py: GGUF Naming Convention Refactor and Metadata Override Refactor #7499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
d3a936f
convert-*.py: licence -> license
mofosyne dbb1b47
convert-*.py: add --get-outfile command and refactor
mofosyne a42c2b7
convert-*.py: add basename and finetune metadata
mofosyne 916872f
convert-*.py: model card metadata
mofosyne 4d5f18a
convert-*.py: metadata class moved to utility
mofosyne 5c263cb
convert-*.py: encoding_scheme --> output_type
mofosyne b36e391
convert-*.py: parse model card in metadata util. Add license_link and…
mofosyne 8f73408
convert-*.py: add base_version and add tags
mofosyne 0f1d50f
convert-*.py: add parameter size class
mofosyne 684c604
convert-*.py: add datasets and language to KV store
mofosyne b1927ee
convert-*.py: move per model weight estimation away from util back to…
mofosyne f7c2079
convert-*.py: enable --model-name direct metadata override
mofosyne 5a86dfa
convert-*.py: add general.organization to kv store
mofosyne dd15712
convert-*.py: add quantized_by and enhance heuristics
mofosyne b0553f4
convert-*.py: adjust help message
mofosyne 4d5cd06
convert-*.py: use heuristics to parse _name_or_path
mofosyne 32e80e0
convert-*.py: base_model is actually in spec for model cards
mofosyne 54918ad
convert-*.py: refactor parameter weight class
mofosyne 39472a0
convert-*.py: need to include self in per_model_weight_count_estimati…
mofosyne 3625a42
convert-*.py: add heuristic to directory name fallback
mofosyne 91e65d9
convert-*.py: add unittest to metadata class
mofosyne d060fcd
convert-*.py: adjusted authorship KV store
mofosyne eaa47f5
convert-*.py: separated unit test, hf_repo to repo_url
mofosyne e973443
convert-*.py: Remove self.model_name that was left in since last rebase
mofosyne 5011eef
convert_hf_to_gguf.py: optional, dataclass removed from type as it wa…
mofosyne 2f23927
convert_hf_to_gguf.py: rebase error correction
mofosyne 4dc8ddd
convert_hf_to_gguf.py: Remove code that is already in fill_templated_…
mofosyne 007708e
gguf_writer.py: generate tensor uuid if missing
mofosyne 7ecb8f0
test: remove test_gguf.py and remove test_generate_any_missing_uuid()
mofosyne fdc5a3f
convert-*.py: autogenerate general.uuid if missing
mofosyne 2a976e1
convert-*.py: write_tensors() --> prepare_tensors_for_writing()
mofosyne 59a01df
convert-*.py: refactor per model weight count estimation
mofosyne dd14b8f
convert-*.py: pyright type fixes
mofosyne 74383ba
Apply suggestions from code review
mofosyne 4c91d07
convert-*.py: cast not required if Metadata.load_metadata_override re…
mofosyne 6eb08ac
convert-*.py: Removing the redundant metadata is not None from all co…
mofosyne f8b5931
convert-*.py: parameter_class_attribute --> size_label
mofosyne 64707b6
convert-*.py: remove redundant gguf_writer.add_name() calls
mofosyne 04c4fff
convert-*.py: prepare_tensors_for_writing() --> prepare_tensors()
mofosyne f2b425c
convert-*.py: import cast from typing and other refactor
mofosyne ad217d7
convert-*.py: remove autogenerated uuid
mofosyne 60278e4
Update convert_hf_to_gguf.py
mofosyne aa4e589
Update convert_hf_to_gguf.py
mofosyne 2c06030
Update constants.py : spacing correction
mofosyne 8156835
constants.py : Revert removal of backward compatibility KEY_GENERAL_S…
mofosyne ccff6c7
convert-*.py: remove reference to uuid generation
mofosyne 455c0e5
Apply suggestions from code review
mofosyne 5ab1a84
convert-*.py: dict_item --> Iterable
mofosyne 5cdb03b
convert-*.py: update nix package to add python frontmatter
mofosyne 9954b64
convert-*.py: add logger and refactor load_model_card()
mofosyne abc351c
convert-*.py: quantized_by in model card is not relevant for converte…
mofosyne 144a7ec
convert-*.py: pathlib.Path exist() --> is_file() or is_dir()
mofosyne 8629b7b
covert-*.py: per_model_weight_count_estimation() tensor arg type is I…
mofosyne 4e37611
covert-*.py: flake8 newline missing
mofosyne f98f109
convert-*.py: more rigorous regexp for get_model_id_components()
mofosyne 3b1766a
convert-*.py: flake8 remove blank line
mofosyne 78a42fb
gguf-py : use pyyaml instead of python-frontmatter
compilade 417d7a7
convert_hf : use GGUFWriter to count model parameters
compilade 9a925b5
metadata.py: account for decimal point in size label within model id …
mofosyne c7b3616
Update convert_hf_to_gguf.py
mofosyne 5da16bb
Merge branch 'master' into refactor-convert-py
mofosyne eb0bf6b
convert-*.py: Add naming_convention_vocab_only()
mofosyne 7e9271c
convert_lora_to_gguf.py: remove model_name parameter. Doesn't exist i…
mofosyne 2c18a9a
gguf-py : extract metadata from model name more resiliently
compilade 4c9932c
gguf-py : fix flake8 lint
compilade 73899f7
gguf-py : handle more name metadata extraction edge cases
compilade File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.