Skip to content

Phi Silica ignoring stop token #5203

Open
@shaybenel

Description

@shaybenel

Describe the bug

I see cases where the model would return a result that includes the string ..."<|end|><|user|>"...
Looks like its breaking out of the <|assistant|> token instructions.

It would be good if next version would allow

  1. Better support of specifying stop token
  2. Support for canceling a generation

#2 would allow to implement our own stop sequence in a streaming response.

Steps to reproduce the bug

This took running the model at scale to detect

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Packaging type

No response

Windows version

No response

IDE

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions