Skip to content

Commit 64ccb39

Browse files
committed
Updated Client,Server Package and Docs
1 parent 0bc2c97 commit 64ccb39

File tree

13 files changed

+789
-470
lines changed

13 files changed

+789
-470
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- 'locallab/**'
9+
- 'client/python_client/**'
10+
- 'setup.py'
11+
- 'client/python_client/setup.py'
712

813
jobs:
914
build-and-publish:
1015
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
package: ['locallab', 'client/python_client']
19+
1120
steps:
1221
- name: Checkout code
1322
uses: actions/checkout@v3
@@ -23,10 +32,28 @@ jobs:
2332
pip install build twine
2433
2534
- name: Build package
26-
run: python -m build --sdist --wheel
35+
run: |
36+
cd ${{ matrix.package }}
37+
python -m build --sdist --wheel
2738
2839
- name: Publish package to PyPI
2940
uses: pypa/gh-action-pypi-publish@v1.4.2
3041
with:
42+
packages_dir: ${{ matrix.package }}/dist/
3143
user: __token__
3244
password: ${{ secrets.PYPI_API_TOKEN }}
45+
46+
- name: Create Release
47+
uses: actions/create-release@v1
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
with:
51+
tag_name: v${{ github.run_number }}
52+
release_name: Release v${{ github.run_number }}
53+
body: |
54+
Release v${{ github.run_number }}
55+
56+
Changes in this release:
57+
- See CHANGELOG.md for details
58+
draft: false
59+
prerelease: false

CHANGELOG.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,32 @@
22

33
All notable changes to LocalLab will be documented in this file.
44

5+
## 0.4.23 - 2025-03-13
6+
7+
### Fixed
8+
9+
- Fixed critical issue with BERT model loading by removing device_map for BERT models
10+
- Added proper BERT model configuration for text generation
11+
- Improved model loading process with better architecture detection
12+
- Enhanced error handling for different model architectures
13+
- Fixed memory management for CPU-only environments
14+
- Added automatic model type detection and configuration
15+
- Improved compatibility with various model architectures
16+
- Enhanced error messages for better debugging
17+
18+
### Added
19+
20+
- Added support for BERT models in text generation mode
21+
- Implemented automatic model architecture detection
22+
- Added proper model-specific configurations
23+
- Enhanced memory optimization for different model types
24+
525
## 0.4.22 - 2025-03-12
626

727
### Fixed
828

929
- Fixed critical issue with server not terminating properly when Ctrl+C is pressed
10-
- Improved process termination by using os.\_exit() instead of sys.exit() for clean shutdown
30+
- Improved process termination by using os._exit() instead of sys.exit() for clean shutdown
1131
- Added CPU compatibility by disabling quantization when CUDA is not available
1232
- Fixed bitsandbytes error for CPU-only systems with clear warning messages
1333
- Enhanced user experience with better error handling for non-GPU environments
@@ -55,7 +75,7 @@ All notable changes to LocalLab will be documented in this file.
5575
- Implemented proper ASGI server in SimpleTCPServer for handling API requests
5676
- Added support for uvicorn's H11Protocol for better request handling
5777
- Improved fallback server implementation with proper HTTP request parsing
58-
- Enhanced API documentation to show correct URLs based on environment
78+
- Fixed API documentation to show correct URLs based on environment
5979
- Fixed API examples to show local URL or ngrok URL based on configuration
6080
- Ensured server works correctly in both local and Google Colab environments
6181

@@ -108,7 +128,7 @@ All notable changes to LocalLab will be documented in this file.
108128

109129
- Fixed critical error: "'Config' object has no attribute 'server_class'"
110130
- Implemented custom startup method that doesn't rely on config.server_class
111-
- Fixed import issues in Google Colab by properly exposing start_server in **init**.py
131+
- Fixed import issues in Google Colab by properly exposing start_server in __init__.py
112132
- Enhanced compatibility with different versions of uvicorn
113133
- Improved server initialization for more reliable startup
114134
- Added direct TCPServer initialization for better compatibility
@@ -139,7 +159,7 @@ All notable changes to LocalLab will be documented in this file.
139159

140160
### Fixed
141161

142-
- Fixed critical error: "LifespanOn.**init**() takes 2 positional arguments but 3 were given"
162+
- Fixed critical error: "LifespanOn.__init__() takes 2 positional arguments but 3 were given"
143163
- Enhanced lifespan initialization to handle different uvicorn versions with varying parameter requirements
144164
- Implemented comprehensive parameter testing for all lifespan classes to ensure compatibility
145165
- Added detailed logging for lifespan initialization to aid in troubleshooting
@@ -149,7 +169,7 @@ All notable changes to LocalLab will be documented in this file.
149169

150170
### Fixed
151171

152-
- Fixed critical error with LifespanOn initialization: "LifespanOn.**init**() got an unexpected keyword argument 'logger'"
172+
- Fixed critical error with LifespanOn initialization: "LifespanOn.__init__() got an unexpected keyword argument 'logger'"
153173
- Improved compatibility with different versions of uvicorn by properly handling lifespan initialization
154174
- Enhanced error handling for different lifespan implementations
155175
- Added graceful fallbacks when lifespan initialization fails
@@ -487,4 +507,4 @@ All notable changes to LocalLab will be documented in this file.
487507
- Refactored `run_server_proc` in the spawned process to initialize a dedicated logger ("locallab.spawn") to avoid inheriting SemLock objects from a fork context.
488508
- Ensured that the log queue is created using the multiprocessing spawn context, preventing runtime errors in Google Colab.
489509
- Updated Mermaid diagrams in `README.md` and `docs/colab/README.md` to enclose node labels in double quotes, resolving parse errors in GitHub rendering.
490-
- Removed duplicate architecture diagrams from the root `
510+
- Removed duplicate architecture diagrams from the root `README.md` file.

0 commit comments

Comments
 (0)