Skip to content

Matlib version error #88

Open
Open
@CViniciusSDias

Description

@CViniciusSDias

System Info

uname -a
Linux laptop 6.8.0-47-generic #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 21:40:26 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
php -v
PHP 8.3.6 (cli) (built: Dec  2 2024 12:36:18) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies
    with Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans
dpkg -l | grep matlib
ii  rindow-matlib                                  1.1.0-24.04                                   amd64        Rindow Math Matrix library

"codewithkyrian/transformers": "0.5.3"

PHP Version

8.3.6

Environment/Platform

  • Command-line application
  • Web application
  • Serverless
  • Other (please specify)

Description

When trying to execute a simple summarization task, I get the following error:

PHP Fatal error:  Uncaught LogicException: matlib 1.0.1 is an unsupported version. Supported versions are greater than or equal to 1.1.0 and less than 2.0.0. in /home/vinicius/Documentos/Palestras/transformers-php/projeto/vendor/rindow/rindow-matlib-ffi/src/MatlibFactory.php:127
Stack trace:
#0 /home/vinicius/Documentos/Palestras/transformers-php/projeto/vendor/rindow/rindow-matlib-ffi/src/MatlibFactory.php(56): Rindow\Matlib\FFI\MatlibFactory->assertVersion()
#1 /home/vinicius/Documentos/Palestras/transformers-php/projeto/vendor/codewithkyrian/transformers/src/Tensor/TensorService.php(23): Rindow\Matlib\FFI\MatlibFactory->__construct()
#2 /home/vinicius/Documentos/Palestras/transformers-php/projeto/vendor/rindow/rindow-math-matrix/src/Drivers/AbstractMatlibService.php(61): Codewithkyrian\Transformers\Tensor\TensorService->injectDefaultFactories()
#3 /home/vinicius/Documentos/Palestras/transformers-php/projeto/vendor/codewithkyrian/transformers/src/Tensor/Tensor.php(284): Rindow\Math\Matrix\Drivers\AbstractMatlibService->__construct()
#4 /home/vinicius/Documentos/Palestras/transformers-php/projeto/vendor/codewithkyrian/transformers/src/Tensor/Tensor.php(166): Codewithkyrian\Transformers\Tensor\Tensor::service()
#5 /home/vinicius/Documentos/Palestras/transformers-php/projeto/vendor/codewithkyrian/transformers/src/Tensor/Tensor.php(95): Codewithkyrian\Transformers\Tensor\Tensor::newBuffer()
#6 /home/vinicius/Documentos/Palestras/transformers-php/projeto/vendor/codewithkyrian/transformers/src/PretrainedTokenizers/PretrainedTokenizer.php(349): Codewithkyrian\Transformers\Tensor\Tensor->__construct()
#7 /home/vinicius/Documentos/Palestras/transformers-php/projeto/vendor/codewithkyrian/transformers/src/Pipelines/Text2TextGenerationPipeline.php(71): Codewithkyrian\Transformers\PretrainedTokenizers\PretrainedTokenizer->__invoke()
#8 /home/vinicius/Documentos/Palestras/transformers-php/projeto/resumo.php(35): Codewithkyrian\Transformers\Pipelines\Text2TextGenerationPipeline->__invoke()
#9 {main}
  thrown in /home/vinicius/Documentos/Palestras/transformers-php/projeto/vendor/rindow/rindow-matlib-ffi/src/MatlibFactory.php on line 127

As it can be seen in the following screenshot, I have th 1.1.0 version:

Image

Reproduction

<?php

use function Codewithkyrian\Transformers\Pipelines\pipeline;

require_once __DIR__ . '/vendor/autoload.php';

pipeline('summarization')('Test');

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions