Skip to content

Commit a94810a

Browse files
Add the GGUF for Quantization
1 parent c70945d commit a94810a

File tree

6 files changed

+124
-8
lines changed

6 files changed

+124
-8
lines changed

.github/workflows/ci.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: QuantLLM CI/CD
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
tags:
7+
- 'v*'
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.10", "3.11"]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -e .[dev,test,gguf]
30+
pip install pytest pytest-cov black isort
31+
32+
- name: Check code formatting
33+
run: |
34+
black . --check
35+
isort . --check-only
36+
37+
- name: Run tests
38+
run: |
39+
pytest tests/ --cov=quantllm --cov-report=xml
40+
41+
- name: Upload coverage to Codecov
42+
uses: codecov/codecov-action@v3
43+
with:
44+
file: ./coverage.xml
45+
fail_ci_if_error: true
46+
47+
publish:
48+
needs: test
49+
runs-on: ubuntu-latest
50+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
51+
52+
steps:
53+
- uses: actions/checkout@v3
54+
55+
- name: Set up Python
56+
uses: actions/setup-python@v4
57+
with:
58+
python-version: "3.10"
59+
60+
- name: Install dependencies
61+
run: |
62+
python -m pip install --upgrade pip
63+
pip install build twine
64+
65+
- name: Build package
66+
run: python -m build
67+
68+
- name: Publish to PyPI
69+
env:
70+
TWINE_USERNAME: __token__
71+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
72+
run: |
73+
twine check dist/*
74+
twine upload dist/*

.github/workflows/docs.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'docs/**'
8+
- '.github/workflows/docs.yml'
9+
pull_request:
10+
branches: [ main ]
11+
paths:
12+
- 'docs/**'
13+
14+
jobs:
15+
docs:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: "3.10"
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -e .[docs]
30+
pip install sphinx sphinx-rtd-theme
31+
32+
- name: Build documentation
33+
run: |
34+
cd docs
35+
make html
36+
37+
- name: Deploy to GitHub Pages
38+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
39+
uses: peaceiris/actions-gh-pages@v3
40+
with:
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
publish_dir: ./docs/_build/html

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
128128

129129
## 📫 Contact & Support
130130

131-
- GitHub Issues: [Create an issue](https://github.com/yourusername/QuantLLM/issues)
131+
- GitHub Issues: [Create an issue](https://github.com/codewithdark-git/QuantLLM/issues)
132132
- Documentation: [Read the docs](https://quantllm.readthedocs.io/)
133-
- Discord: [Join our community](https://discord.gg/quantllm)
134-
133+

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
project = 'QuantLLM'
66
copyright = '2025, QuantLLM Team'
7-
author = 'QuantLLM Team'
8-
version = '1.0.0'
9-
release = '1.0.0'
7+
author = 'Dark Coder'
8+
version = '1.2.0'
9+
release = '1.2.0'
1010

1111
# RTD configurations
1212
on_rtd = os.environ.get('READTHEDOCS') == 'True'

quantllm/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
# Configure package-wide logging
3636
configure_logging()
3737

38-
__version__ = "0.1.0"
38+
__version__ = "1.2.0"
3939

4040
# Package metadata
4141
__title__ = "QuantLLM"
4242
__description__ = "Efficient Quantized LLM Fine-Tuning Library"
43-
__author__ = "QuantLLM Team"
43+
__author__ = "Dark Coder"
4444

4545
__all__ = [
4646

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"llama-cpp-python>=0.2.0",
4848
"psutil>=5.9.0",
4949
"pandas>=1.5.0",
50+
"pynvml>=12.0.0"
5051
],
5152
extras_require={
5253
"dev": [

0 commit comments

Comments
 (0)