GLiNER icon indicating copy to clipboard operation
GLiNER copied to clipboard

evaluation_strategy argument is deprecated.

Open qqaatw opened this issue 11 months ago • 2 comments

Hello,

When I tried out the fine-tuning google colab notebook, an error popped out when instantiating Trainer.

The root cause is evaluation_strategy being deprecated and replaced by eval_strategy, see https://github.com/huggingface/transformers/pull/30190.

qqaatw avatar Jun 02 '25 05:06 qqaatw

Hi,

First, thanks @qqaatw for creating this ticket and solving that issue, I encountered the same problem. I will take that opportunity to thank the developers for building that great package and open sourcing it.

FYI @Ingvarstep @urchade there is an opportunity to update the finetune colab script. A lot of packages have changed version, I don't know if other elements need to change to properly run fine-tuning.

Best,

JP

jpmallette avatar Oct 17 '25 13:10 jpmallette

I have an update for the google colab finetune script:

I would recommend to update the google colab with the following two changes:

1, env setup to install gliner from the source:

%%bash pip uninstall gliner -y rm -rf GLiNER git clone https://github.com/urchade/GLiNER.git cd GLiNER pip install -r requirements.txt pip install . python -c "import gliner; print(f'✓ GLiNER version: {gliner.version}')"

  1. update the eval_strategy in the TrainingArguments class.

jpmallette avatar Oct 17 '25 16:10 jpmallette