patchs_unsloth_llamacpp
Overview
patchs_unsloth_llamacpp is a tool designed to accelerate model inference on the Windows platform using llama.cpp as its backend.
Features
- Accelerates model inference by llama.cpp.
- Compatible with Windows operating system.
- If RAM is not enough, also support move data to VRAM ( this may consume more VRAM ).
- Only Support GRPOTrainer now.
- Automatically download latest llama.cpp from github to ./Llama.
Usage Example
To use patchs_unsloth_llamacpp, follow these steps:
-
Install the python package:
python3 -m pip install patchs_unsloth_llamacpp
-
Add code below in you project:
# use code below before import unsloth and unsloth-zoo from patchs_unsloth_llamacpp import patch patch("GRPO")
-
Run your project:
python3 your_project.py -
If RAM is OOM when training, add these code below to move data to VRAM instead.
from patchs_unsloth_llamacpp import unsloth_cpu_oom_patch unsloth_cpu_oom_patch(True)
QAs
1. First Run Error
On the initial run, you might encounter an error stating "AttributeError: 'NoneType' object has no attribute 'span'". Simply running the application again should resolve this issue.
2. GGUF Error
As llama.cpp has it own gguf format to save models, this package has its own gguf python package, which may conflicts with other gguf packages installed in the system. If this happens, please uninstall or update guff package installed.
3. Install llama.cpp Error
If something wrong with installing llama.cpp to your project, please shutdown windows defender first ( Windows Defender may determine file risk ) and check the Internet connecting to Github. Or you can Install llama.cpp in Github ( https://github.com/ggml-org/llama.cpp/releases/latest )
Contact Author
For questions or contributions, please contact the author at liuzhi1999@foxmail.com.
Metadata
Release files for patchs-unsloth-llamacpp 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| patchs_unsloth_llamacpp-0.0.4.tar.gz | 203.7 kB | Without provenance | Details for patchs_unsloth_llamacpp-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| patchs_unsloth_llamacpp-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for patchs_unsloth_llamacpp-0.0.4-py3-none-any.whl |
Total release size: 417.9 kB
Release files / patchs_unsloth_llamacpp-0.0.4.tar.gz
| Download URL | patchs_unsloth_llamacpp-0.0.4.tar.gz |
|---|---|
| Size | 203.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99feb0e408f902c557370cb6a9d9a39b708f1ced888bb410188a39b827f544e1
|
|
BLAKE2b-256 checksum How to use checksums |
403f4ece5494c970edcd02c5e32d9f6fc63dab32ed5036ff37732acb8cc88020
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Release files / patchs_unsloth_llamacpp-0.0.4-py3-none-any.whl
| Download URL | patchs_unsloth_llamacpp-0.0.4-py3-none-any.whl |
|---|---|
| Size | 214.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f15d7f3e8d2abfcbc09e36ef52836d9f901407d4373a42144d6da7dcccded7e7
|
|
BLAKE2b-256 checksum How to use checksums |
15c5ef12f53656c7cbdbcf1a223ad3b6eab23f2e40f1869922b7ecb4371fdc1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Security for patchs-unsloth-llamacpp 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.