Text Generation
Transformers
Safetensors
English
falcon_mamba
conversational
Inference Endpoints

Sometimes I've empty answer

#13
by Yarflam - opened

The model replies in general, but sometimes nothing is generate.

I started my talk with a basic preprompt without any problem:

image.png

And 6 messages later:

Capture d'écran 2024-08-31 023311.png

I don't see any error in my runpod instance:

Capture d'écran 2024-08-31 023628.png

I've the impression that this happens more frequently when the end doesn't finish with punctuation (to be verified, of course).

The model is running with minimum parameters:

outputs = self.model.generate(
    encodeds.to(self.device),
    num_return_sequences=options['n'],
    max_new_tokens=options['max_new_tokens'],
    do_sample=options['do_sample'],
    temperature=options['temperature'],
    top_p=options['top_p'],
    pad_token_id=self.tokenizer.eos_token_id
)

If you have any idea about the reasons or debug approach to determine the bug.

Sign up or log in to comment