-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
build(python): Package scripts with pep-0517 compliance #5745
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
db85d49
build(python): Package scripts with pip-0517 compliance
ditsuke 2181a3e
fix: Actually include scripts in build
ditsuke d766dc4
fix: Update script paths in CI scripts
ditsuke 4bebdfd
chore: ignore all __pychache__
ditsuke 45f29bf
chore: Fixup requirements and build
ditsuke 29e6edc
chore: Remove rebase artifacts
ditsuke a9d6442
doc: Add context for why we add an explicit pytorch source
ditsuke 4c6f3d6
build: Export hf-to-gguf as snakecase
ditsuke 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
This file contains 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 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 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-r ../../requirements/requirements-convert-legacy-llama.txt | ||
pillow~=10.2.0 | ||
torch~=2.1.1 | ||
torch~=2.2.1 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[tool.poetry] | ||
name = "llama-cpp-scripts" | ||
version = "0.0.0" | ||
description = "Scripts that ship with llama.cpp" | ||
authors = ["GGML <[email protected]>"] | ||
readme = "README.md" | ||
homepage = "https://ggml.ai" | ||
repository = "https://github.com/ggerganov/llama.cpp" | ||
keywords = ["ggml", "gguf", "llama.cpp"] | ||
packages = [{ include = "*.py", from = "." }] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.9" | ||
numpy = "^1.25.0" | ||
sentencepiece = ">=0.1.98,<0.2.0" | ||
transformers = ">=4.35.2,<5.0.0" | ||
protobuf = ">=4.21.0,<5.0.0" | ||
gguf = { path = "./gguf-py" } | ||
torch = { version = "^2.2.0", source = "pytorch" } | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^5.2" | ||
|
||
|
||
# Force wheel + cpu | ||
# For discussion and context see https://github.com/python-poetry/poetry#6409 | ||
[[tool.poetry.source]] | ||
name = "pytorch" | ||
url = "https://download.pytorch.org/whl/cpu" | ||
priority = "explicit" | ||
ditsuke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry.scripts] | ||
llama-convert-hf-to-gguf = "convert_hf_to_gguf:main" | ||
llama-convert-llama-ggml-to-gguf = "convert_llama_ggml_to_gguf:main" | ||
llama-ggml-vk-generate-shaders = "ggml_vk_generate_shaders:main" |
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, would you have time to sync and/or relax the constraints?
#7246 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For sure