File tree Expand file tree Collapse file tree 6 files changed +124
-8
lines changed Expand file tree Collapse file tree 6 files changed +124
-8
lines changed Original file line number Diff line number Diff line change
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/*
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -128,7 +128,6 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
128
128
129
129
## 📫 Contact & Support
130
130
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 )
132
132
- Documentation: [ Read the docs] ( https://quantllm.readthedocs.io/ )
133
- - Discord: [ Join our community] ( https://discord.gg/quantllm )
134
-
133
+
Original file line number Diff line number Diff line change 4
4
5
5
project = 'QuantLLM'
6
6
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'
10
10
11
11
# RTD configurations
12
12
on_rtd = os .environ .get ('READTHEDOCS' ) == 'True'
Original file line number Diff line number Diff line change 35
35
# Configure package-wide logging
36
36
configure_logging ()
37
37
38
- __version__ = "0.1 .0"
38
+ __version__ = "1.2 .0"
39
39
40
40
# Package metadata
41
41
__title__ = "QuantLLM"
42
42
__description__ = "Efficient Quantized LLM Fine-Tuning Library"
43
- __author__ = "QuantLLM Team "
43
+ __author__ = "Dark Coder "
44
44
45
45
__all__ = [
46
46
Original file line number Diff line number Diff line change 47
47
"llama-cpp-python>=0.2.0" ,
48
48
"psutil>=5.9.0" ,
49
49
"pandas>=1.5.0" ,
50
+ "pynvml>=12.0.0"
50
51
],
51
52
extras_require = {
52
53
"dev" : [
You can’t perform that action at this time.
0 commit comments