Skip to content

Commit 9ff9f88

Browse files
committed
Updated LocalLab v0.1.6 and Updated Docs
1 parent 441087d commit 9ff9f88

File tree

4 files changed

+147
-122
lines changed

4 files changed

+147
-122
lines changed

CHANGELOG.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,31 @@
22

33
All notable changes for version updates.
44

5-
## [0.1.5] - 2024-03-01
5+
## [0.1.6] - 2025-02-25
6+
7+
### Added
8+
9+
- Added utility function is_port_in_use(port: int) → bool to check if a port is already in use.
10+
- Added async utility function load_model_in_background(model_id: str) to load the model asynchronously in the background while managing the global loading flag.
11+
- Updated server startup functions to incorporate these utilities, ensuring proper port management and asynchronous model loading.
12+
13+
## [0.1.5] - 2025-02-25
614

715
### Changed
816

917
- Extended the initial wait time in start_server from 5 to 15 seconds to allow the server ample time to initialize, especially in Google Colab environments.
1018
- Increased health check timeout to 120 seconds for ngrok mode and 60 seconds for local mode to accommodate slower startups.
1119
- Added detailed logging during health checks to aid in debugging startup issues.
1220

13-
## [0.1.4] - 2024-02-25
21+
## [0.1.4] - 2025-02-25
1422

1523
### Changed
1624

1725
- Improved logging across startup: the banner, model details, configuration, system resources, API documentation, quick start guide, and footer are now fully logged and printed.
1826
- Updated the start_server function to extend the health check timeout to 60 seconds in Google Colab (when using ngrok) and to set an environment variable to trigger the Colab branch in run_server_proc.
1927
- Modified startup_event to load the model in the background, ensuring that the server's /health endpoint becomes available in time and that logging output is complete.
2028

21-
## [0.1.3] - 2024-02-25
29+
## [0.1.3] - 2025-02-25
2230

2331
### Changed
2432

@@ -32,7 +40,7 @@ All notable changes for version updates.
3240
- Removed duplicate architecture diagrams from the root `README.md` to streamline documentation.
3341
- Minor improvements to logging and error handling.
3442

35-
## [0.1.2] - 2024-02-25
43+
## [0.1.2] - 2025-02-25
3644

3745
### Changed
3846

@@ -44,15 +52,15 @@ All notable changes for version updates.
4452
- Updated Mermaid diagrams to wrap node labels in double quotes, improving compatibility with GitHub rendering.
4553
- Improved build status badge aesthetics in the README.
4654

47-
## [0.1.1] - 2024-02-25
55+
## [0.1.1] - 2025-02-25
4856

4957
### Fixed
5058

5159
- Fixed RuntimeError related to SemLock sharing in multiprocessing by clearing logger handlers in `run_server_proc`.
5260
- Updated Mermaid diagrams to wrap node labels in double quotes, improving compatibility with GitHub rendering.
5361
- Improved build status badge aesthetics in the README.
5462

55-
## [0.1.0] - 2024-02-24
63+
## [0.1.0] - 2025-02-24
5664

5765
### Added
5866

locallab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
LocalLab - A lightweight AI inference server
33
"""
44

5-
__version__ = "0.1.5"
5+
__version__ = "0.1.6"
66

77
from typing import Dict, Any, Optional
88

0 commit comments

Comments
 (0)