Skip to content

Commit 9dd8080

Browse files
CodeWithKyriangithub-actions[bot]
authored andcommitted
Update CHANGELOG
1 parent 5c1de50 commit 9dd8080

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

CHANGELOG.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,55 @@
22

33
All notable changes to `transformers-php` will be documented in this file.
44

5+
## v0.6.0 - 2025-07-21
6+
7+
### What’s Changed
8+
9+
- Add support for stopping criteria: `MaxLength`, `MaxTime`, and `Interruptable` for more flexible generation control.
10+
- Add PSR-3 logging support
11+
- Extend `PretrainedConfig` to reduce code repetition across model files and improve maintainability.
12+
- Restructure `AutoModel` resolution to prioritize generic model selection when no task-specific class is found.
13+
- Add support for new model families: `Gemma`, `Gemma2`, `Gemma3`, `Qwen3`, and `Phi3`, with their respective causal language models.
14+
- Add support for `eos` and `last_token` pooling strategies in the `FeatureExtractionPipeline`.
15+
- Add support for new merge format in `BPEModel` with better compatibility via JSON-encoded token pair mapping.
16+
- Introduce `PretrainedModel::$sessions `array to streamline model session handling across subclasses.
17+
- Simplify streamer implementation to improve clarity and flexibility.
18+
- Enhance image processing methods and VIPS integration.
19+
- Convert to a platform package with native shared library support for Linux, macOS, and Windows (x86_64 and ARM64).
20+
- Introduce dynamic shared library loading with platform-specific path resolution logic.
21+
- Update example configurations, docs, and usage instructions to reflect new architecture.
22+
- Add tests for image utilities and inference session logic.
23+
24+
### Bug Fixes
25+
26+
- Fix `Tensor::slice()` error during generation.
27+
- Fix logic in `RepetitionPenaltyLogitsProcessor` to properly apply penalties based on generated tokens.
28+
- Fix compatibility issues with PHP 8.1 and adjust dependency versions accordingly.
29+
- Fix bug in `HubTest` for Windows paths by using `DIRECTORY_SEPARATOR`.
30+
- Fix edge case in `BPEModel` when null value encountered in merge map.
31+
- Fix various doc inconsistencies and default constructor bugs in model subclasses.
32+
33+
### Improvements
34+
35+
- Refactor library architecture for improved platform compatibility and modularity.
36+
- Refactor `Samplerate`, `Sndfile`, and other FFI wrappers to use instance-based invocation.
37+
- Improve generation configuration merging logic and model resolution flow.
38+
- Unify code style across components and improve clarity of core components.
39+
- Update shared native dependencies:
40+
- onnxruntime → 1.21.0
41+
- rindowmatlib → 1.1.1
42+
43+
- Clean up feature extractors and consolidate model session logic.
44+
- Improve error handling in FFI calls and utility classes.
45+
- Rename internal config and model mapping classes for better clarity (`PretrainedMixin``AutoModelBase`, etc.)
46+
47+
### New Contributors
48+
49+
* @panariga made their first contribution in https://github.com/CodeWithKyrian/transformers-php/pull/73
50+
* @Deltachaos made their first contribution in https://github.com/CodeWithKyrian/transformers-php/pull/77
51+
52+
**Full Changelog**: https://github.com/CodeWithKyrian/transformers-php/compare/0.5.3...0.6.0
53+
554
## TransformersPHP v0.5.3 - 2024-09-27
655

756
This release brings new features, critical bug fixes, and improvements to enhance the functionality and performance of the package. Below is a summary of the changes.
@@ -84,6 +133,7 @@ I'm excited to announce the latest version of TransformersPHP, packed with new f
84133

85134

86135

136+
87137
```
88138
- **New Pipeline: Automatic Speech Recognition (ASR)** - Supports models like `wav2vec` and `whisper` for transcribing speech to text. If a specific model is not officially supported, please open an issue with a feature request.
89139

@@ -99,6 +149,7 @@ I'm excited to announce the latest version of TransformersPHP, packed with new f
99149

100150

101151

152+
102153
```
103154

104155

@@ -118,6 +169,7 @@ I'm excited to announce the latest version of TransformersPHP, packed with new f
118169

119170

120171

172+
121173
```
122174
- **New Tensor Operations** - New operations were added: `copyTo`, `log`, `exp`, `pow`, `sum`, `reciprocal`, `stdMean`. Additionally, overall performance improvements have been made to Tensor operations.
123175

@@ -288,6 +340,7 @@ composer require codewithkyrian/transformers
288340

289341

290342

343+
291344
```
292345
And you must initialize the library to download neccesary libraries for ONNX
293346

@@ -308,6 +361,7 @@ And you must initialize the library to download neccesary libraries for ONNX
308361

309362

310363

364+
311365
```
312366
#### Checkout the Documentation
313367

@@ -334,6 +388,7 @@ To ensure a smooth user experience, especially with larger models, we recommend
334388

335389

336390

391+
337392
```
338393
#### What's Next?
339394

0 commit comments

Comments
 (0)