huggingface / huggingface/transformers.js

Summarization Parameters not working

Open
#453 4 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
16.3k
Forks
1.2k
Avg merge
6d 2h
Merged PRs (30d)
6

Description

### Question

I've tried several of the supported summarization models with the code used in the browser extension example.

The only one I get any results from in a reasonable time is t5-small.

My problem with it is that despite any parameters I try to pass in the result is always same length.

I've traced through the code and it appears that the config params get passed in.

I've tried max_new_tokens, min_new_tokens, max_length, no joy.

I initially started specifying 2.5.3 and last tried just letting cdn handle it, looks like 2.10.x, no joy, same thing.

Could someone please provide me with an example of getting, in my case, the t5-small model running a summarization task that implements parameters as to output?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.