Skip to content

Add ability to ban tokens on exl3 backend#432

Closed
ethanj801 wants to merge 2 commits into
theroyallab:mainfrom
ethanj801:fix-exl3-ban-eos-token
Closed

Add ability to ban tokens on exl3 backend#432
ethanj801 wants to merge 2 commits into
theroyallab:mainfrom
ethanj801:fix-exl3-ban-eos-token

Conversation

@ethanj801

@ethanj801 ethanj801 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Is your pull request related to a problem? Please describe.
TabbyAPI exposes the fields ban_eos_token and banned_tokens which can be used to allow for generation to continue indefinitely or to ban certain desired tokens. However this feature does nothing when using the exl3 backend. This PR resolves this.

Why should this feature be added?
These fields are present (or have equivalent features) across OAI compatible implementations (e.g. textgen). It also is present in TabbyAPI's own exl2 implementation.

@ethanj801 ethanj801 changed the title Add ability to ban EOS token on exl3 backend Add ability to ban tokens on exl3 backend Jul 13, 2026
@ethanj801

Copy link
Copy Markdown
Contributor Author

One could argue this sampler class should be present in exl3 rather than here (happy to move it there if desired).

@ethanj801

Copy link
Copy Markdown
Contributor Author

Going to move this into exl3 and then update tabby when exl3 updates

@ethanj801 ethanj801 closed this Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant