Skip to content

Conversation

@xyxinyang
Copy link
Collaborator

@xyxinyang xyxinyang commented Feb 10, 2026

Motivation

💡 If this PR is a Cherry Pick, the PR title needs to follow the format by adding the [Cherry-Pick] label at the very beginning and appending the original PR ID at the end. For example, [Cherry-Pick][CI] Add check trigger and logic(#5191)

💡 如若此PR是Cherry Pick,PR标题需遵循格式,在最开始加上[Cherry-Pick]标签,以及最后面加上原PR ID,例如[Cherry-Pick][CI] Add check trigger and logic(#5191)

当前日志文件过多,文件过大,需要进行简化

Modifications

日志简化

api_server api_server.log 重复信息,精简:1、删除日志: task['max_tokens']:2、改成debug级别:release chatcmpl-xxx xxxxxxxxxxxxcurrent {'available': xxxxxxxxxxxxxxxxxxxxxxxx}3、精简(dict少打印一些)Chat Streaming response send_idx x xxxxxxxxxxxxxxxxxxxxxxChat Streaming response last send xxxxxxxxxxxxx done
paddle backup_env.0.json 放在单独paddle文件夹 done
default.gpu.log
default.ajlfl.log
default.ajkuzm.log
default.asowrn.log
default.awfkpe.log
envlog.0
cache cache_transfer_manager_tprank* 除了启动,其余均改为DEBUG日志 done
cache_queue_manager.log 全改为debug
launch_cache_transfer_manager_tprank0.log 合入到cache manager.log里面
config config.log 删除,放到一个dict里直接控制台打印 done
合并 cudagraph_piecewise_backend.log 和workerlog内容重复;合并到worker_process.log里面 done
gpu_worker.log 合并到worker_process.log
launch_worker.log 迁移到其他日志(work_process)
model_runner_base.log 复用worker_process.log
主体 fastdeploy.log recycle resources for requests xxx 和 send_multipart finnished, xxx 改为DEBUG级别 done

新增 debug1 级别

DEBUG1 级别,介于 DEBUG 和 INFO 之间

上述的修改,均设置为 DEBUG1 级别。

Usage or Command

from fastdeploy.utils import  get_logger

logger = get_logger("prefix_cache_manager", "cache_manager.log")
logger.debug1(f"request_match_blocks: req_id {req_id}, matched_block_ids {common_block_ids}")

Accuracy Tests

当前 INFO 级别下日志文件:
image

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot
Copy link

paddle-bot bot commented Feb 10, 2026

Thanks for your contribution!

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 56.93069% with 87 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@83b4b08). Learn more about missing BASE report.

Files with missing lines Patch % Lines
fastdeploy/cache_manager/cache_transfer_manager.py 0.00% 47 Missing ⚠️
fastdeploy/utils.py 65.21% 8 Missing and 8 partials ⚠️
fastdeploy/config.py 46.15% 7 Missing ⚠️
...astdeploy/inter_communicator/engine_cache_queue.py 28.57% 5 Missing ⚠️
fastdeploy/logger/levels.py 81.81% 2 Missing and 2 partials ⚠️
fastdeploy/cache_manager/prefix_cache_manager.py 75.00% 3 Missing ⚠️
fastdeploy/logger/setup_logging.py 70.00% 1 Missing and 2 partials ⚠️
fastdeploy/scheduler/config.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #6431   +/-   ##
==========================================
  Coverage           ?   67.84%           
==========================================
  Files              ?      392           
  Lines              ?    52799           
  Branches           ?     8221           
==========================================
  Hits               ?    35823           
  Misses             ?    14354           
  Partials           ?     2622           
Flag Coverage Δ
GPU 67.84% <56.93%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants