PaddlePaddle / PaddlePaddle/FastDeploy

[bug] 'LLMEngine' object has no attribute '_get_generated_tokens'

Open
#2,795 2 comments 0 reactions 1 assignee View on GitHub

@rainyfly is already working on this.

Since Jul 10, 2025.

Dominant language
Python
Stars
3.7k
Forks
756
Avg merge
19h 28m
Merged PRs (30d)
4

Description

  File "/root/offline_inference.py", line 289, in llm_engine_generate
    for result in llm_engine.generate(prompts, True):
  File "/usr/local/lib/python3.10/site-packages/fastdeploy/engine/engine.py", line 1121, in generate
    for result in self._get_generated_tokens(req_id):
AttributeError: 'LLMEngine' object has no attribute '_get_generated_tokens'. Did you mean: '_get_generated_result'?

PS: llm_engine.generate() need sampling_params to set

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.