乐于分享
好东西不私藏

TensorRT-LLM 0.5.0 源码之十六

TensorRT-LLM 0.5.0 源码之十六

ammo.py

try:    import ammo.torch.quantization as atq    from ammo.torch.export import export_model_configexcept ImportError:    raise ImportError("AMMO toolkit is not installed. Please install it first.")
def _quantize_model(model: torch.nn.Module,                    qformat: Literal['fp8', 'int8_sq', 'int4_awq'],                    calib_dataloader: DataLoader,                    quant_cfg_dict: Optional[Dict] = None) -> torch.nn.Module:    assert qformat in ['fp8', 'int8_sq', 'int4_awq'], \        f'Got unsupported AMMO quantization format, {qformat} '    if qformat == "fp8":        quant_cfg = atq.FP8_DEFAULT_CFG        if quant_cfg_dict:            for name, cfg in quant_cfg_dict.items():                quant_cfg['quant_cfg'][name] = cfg    elif qformat == "int8_sq":        quant_cfg = atq.INT8_SMOOTHQUANT_CFG    elif qformat == "int4_awq":        quant_cfg = atq.INT4_AWQ_CFG    else:        raise ValueError(f"Unsupported quantization format: {qformat}")    def calibrate_loop():        """Adjusts weights and scaling factors based on selected algorithms."""        for idx, data in enumerate(calib_dataloader):            logger.debug(f"Calibrating batch {idx}")            model(data)    logger.debug("Starting quantization...")    atq.quantize(model, quant_cfg, forward_loop=calibrate_loop)    logger.debug("Quantization done")    return model
def quantize_and_export(model: torch.nn.Module,                        qformat: Literal['fp8', 'int8_sq', 'int4_awq'],                        calib_dataloader: DataLoader,                        export_path: Optional[Union[str, Path]] = None,                        tensor_parallel_size: int = 1) -> torch.nn.Module:    model_cls_name = type(model).__name__    if "Llama" in model_cls_name:        model_type = "llama"    elif "GPTJ" in model_cls_name:        model_type = "gptj"    elif "GPT2" in model_cls_name:        model_type = "gpt2"    elif "Falcon" in model_cls_name or "RW" in model_cls_name:        model_type = "falcon"    else:        raise NotImplementedError(            f"Deploying quantized model {model_cls_name} is not supported")    model = _quantize_model(model,                            qformat=qformat,                            calib_dataloader=calib_dataloader)    if export_path:        with torch.inference_mode():            if qformat == "int4_awq":                torch.save(model.state_dict(), export_path)            else:                export_model_config(                    model,                    model_type,                    torch.float16,                    quantization=qformat,                    export_dir=export_path,                    inference_tensor_parallel=tensor_parallel_size,                )        logger.info(f"Quantized model exported to :{export_path}")    return model

quant.py

# isort: offfrom ...quantization.layers import (    SmoothQuantAttention, SmoothQuantGatedMLP, SmoothQuantLayerNorm,    SmoothQuantMLP, SmoothQuantRmsNorm, WeightOnlyGroupwiseQuantColumnLinear,    WeightOnlyGroupwiseQuantRowLinear, WeightOnlyQuantColumnLinear,    WeightOnlyQuantRowLinear)# isort: on

smooth_quantize

def _smooth_quantize_llama(model, quant_mode):    assert quant_mode.has_act_and_weight_quant()    for layer in model.layers:        assert hasattr(layer,                       "input_layernorm"), "The layer has no input_layernorm"        layer.input_layernorm = SmoothQuantRmsNorm(            normalized_shape=layer.hidden_size,            dtype=layer.dtype,            quant_mode=quant_mode)        assert hasattr(layer, "attention"), "The layer has no attention"        layer.attention = SmoothQuantAttention(            layer.hidden_size,            num_attention_heads=layer.num_attention_heads,            num_kv_heads=layer.num_kv_heads,            max_position_embeddings=layer.max_position_embeddings,            num_layers=model.num_layers,            dtype=layer.dtype,            attention_mask_type=layer.attention_mask_type,            position_embedding_type=layer.position_embedding_type,            tp_group=layer.tp_group,            tp_size=layer.tp_size,            quant_mode=quant_mode,            bias=False)        assert hasattr(layer, "mlp"), "The layer has no mlp"        layer.mlp = SmoothQuantGatedMLP(hidden_size=model.hidden_size,                                        ffn_hidden_size=layer.mlp_hidden_size,                                        hidden_act=layer.hidden_act,                                        dtype=layer.dtype,                                        tp_group=layer.tp_group,                                        tp_size=layer.tp_size,                                        quant_mode=quant_mode,                                        bias=False)        assert hasattr(            layer,            "post_layernorm"), "The layer has no post_rmspost_layernormnorm"        layer.post_layernorm = SmoothQuantRmsNorm(            normalized_shape=layer.hidden_size,            dtype=layer.dtype,            quant_mode=quant_mode)    setattr(model, 'quant_mode', quant_mode)    return modeldef smooth_quantize(model, quant_mode):    assert isinstance(model, GPTLMHeadModel) or isinstance(model, LLaMAForCausalLM) \            or isinstance(model, BloomForCausalLM),\            "Only GPTLMHeadModel, LLaMAForCausalLM and BloomForCausalLM are well tested now"    if isinstance(model, LLaMAForCausalLM):        return _smooth_quantize_llama(model, quant_mode)    else:        assert False, f"Model {type(model).__name__} is not supported by SmoothQuant yet"

weight_only_quantize

def weight_only_quantize(model,                         quant_mode,                         exclude_modules=None,                         current_key_name=None):    assert quant_mode.is_weight_only()    exclude_modules = ['lm_head'                       ] if exclude_modules is None else exclude_modules    for name, module in model.named_children():        if current_key_name is None:            current_key_name = []        current_key_name.append(name)        if len(list(module.children())) > 0:            weight_only_quantize(module, quant_mode, exclude_modules,                                 current_key_name)        if isinstance(module, ColumnLinear) and name not in exclude_modules:            if not any(key in '.'.join(current_key_name)                       for key in exclude_modules):                model._modules[name] = WeightOnlyQuantColumnLinear(                    in_features=module.in_features,                    out_features=module.out_features * module.tp_size,                    bias=module.bias is not None,                    dtype=module.dtype,                    tp_group=module.tp_group,                    tp_size=module.tp_size,                    gather_output=module.gather_output,                    quant_mode=quant_mode)        elif isinstance(module, RowLinear) and name not in exclude_modules:            if not any(key in '.'.join(current_key_name)                       for key in exclude_modules):                model._modules[name] = WeightOnlyQuantRowLinear(                    in_features=module.in_features * module.tp_size,                    out_features=module.out_features,                    bias=module.bias is not None,                    dtype=module.dtype,                    tp_group=module.tp_group,                    tp_size=module.tp_size,                    quant_mode=quant_mode)        current_key_name.pop(-1)    setattr(model, 'quant_mode', quant_mode)    return model

weight_only_groupwise_quantize

def weight_only_groupwise_quantize(model,                                   quant_mode,                                   group_size=128,                                   pre_quant_scale=False,                                   zero=False,                                   exclude_modules=None,                                   current_key_name=None):    exclude_modules = ['lm_head'                       ] if exclude_modules is None else exclude_modules    for name, module in model.named_children():        if current_key_name is None:            current_key_name = []        current_key_name.append(name)        if len(list(module.children())) > 0:            weight_only_groupwise_quantize(module, quant_mode, group_size,                                           pre_quant_scale, zero,                                           exclude_modules, current_key_name)        if isinstance(module, ColumnLinear) and name not in exclude_modules:            if not any(key in '.'.join(current_key_name)                       for key in exclude_modules):                model._modules[name] = WeightOnlyGroupwiseQuantColumnLinear(                    in_features=module.in_features,                    out_features=module.out_features * module.tp_size,                    group_size=group_size,                    pre_quant_scale=pre_quant_scale,                    zero=zero,                    bias=module.bias is not None,                    dtype=module.dtype,                    tp_group=module.tp_group,                    tp_size=module.tp_size,                    gather_output=module.gather_output)        elif isinstance(module, RowLinear) and name not in exclude_modules:            if not any(key in '.'.join(current_key_name)                       for key in exclude_modules):                model._modules[name] = WeightOnlyGroupwiseQuantRowLinear(                    in_features=module.in_features * module.tp_size,                    out_features=module.out_features,                    group_size=group_size,                    pre_quant_scale=pre_quant_scale,                    zero=zero,                    bias=module.bias is not None,                    dtype=module.dtype,                    tp_group=module.tp_group,                    tp_size=module.tp_size)        current_key_name.pop(-1)    setattr(model, 'quant_mode', quant_mode)    return model

others

def get_dummy_quant_scales(num_layers):    return {        'lm_head_act': 0.99,        'lm_head_weights': 0.99,        'fc_act': [0.99 for _ in range(num_layers)],        'fc_weights': [0.99 for _ in range(num_layers)],        'gate_act': [0.99 for _ in range(num_layers)],        'gate_weights': [0.99 for _ in range(num_layers)],        'proj_act': [0.99 for _ in range(num_layers)],        'proj_weights': [0.99 for _ in range(num_layers)],        'qkv_act': [0.99 for _ in range(num_layers)],        'qkv_weights': [0.99 for _ in range(num_layers)],        'qkv_output': [5.0 for _ in range(num_layers)],        'dense_act': [0.99 for _ in range(num_layers)],        'dense_weights': [0.99 for _ in range(num_layers)],    }
def _quantize_layer(layer, layer_idx, quant_mode, quant_scales):    assert hasattr(layer, "mlp"), "The layer has no mlp"    fake_fp8_sf_dt = np.float32    assert isinstance(layer.mlp.fc, (FP8Linear, FP8RowLinear))    assert isinstance(layer.mlp.proj, (FP8Linear, FP8RowLinear))    layer.mlp.fc.activation_scaling_factor.value = np.array(        [quant_scales['fc_act'][layer_idx]], dtype=fake_fp8_sf_dt)    layer.mlp.fc.weights_scaling_factor.value = np.array(        [quant_scales['fc_weights'][layer_idx]], dtype=fake_fp8_sf_dt)    layer.mlp.proj.activation_scaling_factor.value = np.array(        [quant_scales['proj_act'][layer_idx]], dtype=fake_fp8_sf_dt)    layer.mlp.proj.weights_scaling_factor.value = np.array(        [quant_scales['proj_weights'][layer_idx]], dtype=fake_fp8_sf_dt)    if hasattr(layer.mlp, 'gate'):        assert isinstance(layer.mlp.gate, (FP8Linear, FP8RowLinear))        layer.mlp.gate.activation_scaling_factor.value = np.array(            [quant_scales['gate_act'][layer_idx]], dtype=fake_fp8_sf_dt)        layer.mlp.gate.weights_scaling_factor.value = np.array(            [quant_scales['gate_weights'][layer_idx]], dtype=fake_fp8_sf_dt)    assert hasattr(layer, "attention"), "The layer has no attention"    assert isinstance(layer.attention.qkv, (FP8Linear, FP8RowLinear))    assert isinstance(layer.attention.dense, (FP8Linear, FP8RowLinear))    layer.attention.qkv.activation_scaling_factor.value = np.array(        [quant_scales['qkv_act'][layer_idx]], dtype=fake_fp8_sf_dt)    layer.attention.qkv.weights_scaling_factor.value = np.array(        [quant_scales['qkv_weights'][layer_idx]], dtype=fake_fp8_sf_dt)    if quant_mode.has_fp8_kv_cache():        layer.attention.kv_orig_quant_scale.value = np.array(            [quant_scales['qkv_output'][layer_idx]], dtype=fake_fp8_sf_dt)        layer.attention.kv_quant_orig_scale.value = np.array(            [1.0 / quant_scales['qkv_output'][layer_idx]], dtype=fake_fp8_sf_dt)    layer.attention.dense.activation_scaling_factor.value = np.array(        [quant_scales['dense_act'][layer_idx]], dtype=fake_fp8_sf_dt)    layer.attention.dense.weights_scaling_factor.value = np.array(        [quant_scales['dense_weights'][layer_idx]], dtype=fake_fp8_sf_dt)    return layerdef _default_fp8_quantize(model: Union[GPTLMHeadModel, LLaMAForCausalLM,                                       GPTJForCausalLM],                          quant_mode: QuantMode,                          quant_scales: dict = None):    """    Quantize all linear layers (i.e., MLP, Attention QKV/Dense) and KV cache IO with dummy scales    This is used by benchmark script and therefore is intentionally decoupled from AMMO toolkit    """    if quant_scales is None:        num_layers = getattr(model, '_num_layers',                             getattr(model, 'num_layers', None))        assert num_layers is not None        quant_scales = get_dummy_quant_scales(num_layers)    assert model.quant_mode == quant_mode, "Quant setting not consistent with model init setting"    use_fp8_qdq = quant_mode.has_fp8_qdq()    assert use_fp8_qdq    for layer_idx, layer in enumerate(model.layers):        layer = _quantize_layer(layer, layer_idx, quant_mode, quant_scales)    # TODO: add lm_head    return modeldef fp8_quantize(model, quant_mode: QuantMode, quant_scales: dict = None):    if isinstance(            model,        (FalconForCausalLM, GPTJForCausalLM, GPTLMHeadModel, LLaMAForCausalLM)):        return _default_fp8_quantize(model, quant_mode, quant_scales)    raise NotImplementedError(        f"Model {model} is not implemented by fp8_quantize yet")

参考文献

  • • https://github.com/NVIDIA/TensorRT-LLM/blob/v0.5.0/tensorrt_llm/models/quantized/ammo.py
  • • https://github.com/NVIDIA/TensorRT-LLM/blob/v0.5.0/tensorrt_llm/models/quantized/quant.py
点个「赞」+「在看」❤️
让我们知道这份文字有温暖到你,也是我们持续创作的最大动力!
推荐
Lock-Free 队列实现原理
Share Memory 的 Bank Conflict
告别高成本!TensorRT-LLM实战:如何将LLM推理速度提升数倍
使用LoRA对LLM进行微调的实用技巧
强化学习小白必看:PTX Loss 到底是个啥?
GPT-5 Prompt Migration and Improvement Using the New Optimizer
Task 异步流 coroutine 实现
C++ corotine 介绍
搭建 VSCode 离线开发环境
nlohmann/json 库简介
Intro to C++ Coroutines: Concept
Hugging Face BPE Tokenizer 的资源文件
移动语义 std::move 和完美转发 std::forward
ACEBench: Who Wins the Match Point in Tool Usage?
什么是 GN
RULER: Relative Universal LLM-Elicited Rewards
SFT和RFT的区别
CosyVoice 3: 面向真实场景的大规模零样本语音生成模型
CosyVoice 3: Towards In-the-wild Speech Generation
语音合成(TTS)中文自然度:问题、成因、解决方案
上下文工程如何实现
上下文工程(Context Engineering)
新手必看!LangGraph 101:手把手教你搭一个深度研究 Agent
LangGraph 简介
SFT 泛化新解读:强化学习 + 奖励修正,一文读懂
程序员狂喜!Self-Instruct 框架全解析:无限生成高质量指令集,从此告别标注噩梦!
Evol-Instruct 竟能精准生成领域专属数据?实操技巧速看!
指令微调数据-少即是多
LLM generate 参数怎么用?
语音合成(TTS)跳跃与重复问题的解析:成因、机制及解决方案
大模型训练新思路:GEPA 靠 “反思” 赢过 RL,看完秒懂
F5-TTS:用 Flow Matching 玩转语音,流畅度和真实感都 “拉满” 了
E2 TTS:令人尴尬地简单、完全非自回归、零样本的语音合成技术
Voicebox:大规模文本引导的多语言通用语音生成技术
为什么都在聊 Kimi K2?Open Agentic Intelligence 藏着哪些新惊喜
Step-Audio-AQAA 端到端音频模型
DPO、PPO、GRPO的原理,区别与联系
OPENCSG 中文语料库:一系列高质量的中文数据集,用于语言模型训练
什么是 Classifier-Free Guidance?
Conditional Flow Matching : 连续标准流 Continuous Normalizing Flow
CFM 与 OT-CFM:条件流匹配与最优传输的碰撞
DPO损失实现
Conditional Flow Matching : 常微分方程ODE、欧拉方法和Neural ODE
当 Normalizing flow 遇上语音生成:AI 说话变 “真人” 的秘密在这里!
深度剖析:Kimi - Audio 中 BigVGAN 的神奇作用
为什么说分布变换是 Normalizing flow 的「灵魂操作」?
MATCHA-TTS 来了!条件流匹配让文本转语音效率飙升
从知识增长的角度提升RAG上下文的质量
MiniMax-Speech,零样本语音合成新突破,32 种语言轻松拿捏!
手把手教你创建 evol-instruct 数据集!附完整流程~
社交类聊天的 Query 分析与应答策略
SFT 中指令选择和响应选择哪个更重要?
角色扮演大模型技术分享2-超拟人模型的困境
最新!SpeechLLM 综述:架构、能力、挑战与未来全揭秘
如何低成本生成高质量指令微调数据?
从数量到质量:通过自引导数据选择来提升语言模型性能以实现指令调优
Kimi-Audio:开源音频基础模型全面解析
Kimi-Audio 的 TTS 效果如何?
Qwen 的训练数据是怎么做的?
GeForce RTX 3090, 4090, A10, A40, A100, A800, L20, L40 显卡性能对比
如何低成本生成高质量指令微调数据?
掌握RAG:投入生产前要评估的8个场景
掌握RAG:如何评估RAG的LLM
掌握RAG:如何在部署后观察您的RAG
掌握RAG:如何选择嵌入模型
基础模型中的新范式:为什么o1是不同的,以及它将如何改变LLM应用
Semantic token和连续特征在SLLM下的对比
从数量到质量:通过自引导数据选择来提升语言模型性能以实现指令调优
RLHF及其变体:进展和实际工程见解
Freeze-Omni: 低延迟语音对话模型
Fully Sharded Data Parallelism (FSDP)
什么是置信度?置信度模型怎么做?
晦涩难懂的 Flow matching!图形化理解
中文指令微调数据,质量就是一切!
基于 LLM 的文本泛化
CosyVoice 2:基于大型语言模型的可扩展流式语音合成技术
Mini-Omni2: with Vision, Speech and Duplex Capabilities
FSQ的原理与VQ-VAE的区别和联系
大模型并行训练的一些知识——极简版
亲测有效!如何用 Address Sanitizer 精准定位内存漏洞?附保姆级操作指南
要用 AI 裁员 50% 的千亿独角兽,公开认错,重启招聘!
single codebook和dual codebook在LLM中向量量化上有什么区别?
一些文档去重算法
最佳的指令数据应当是什么样的?
Prefill-Decode分离
亲测有效!如何用 Address Sanitizer 精准定位内存漏洞?附保姆级操作指南
Simhash-文档去重算法简介
RLHF 入门,高手勿进!
最佳的指令数据应当是什么样的?
CosyVoice:一种基于监督式语义标记的可扩展多语言 Zero-Shot 语音合成器
Model Context Protocol (MCP)
MCP(模型上下文协议)是什么以及它是如何运作的
压力测试LLMs——大海捞针实现
基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-05-13 21:25:02 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/620302.html
  2. 运行时间 : 0.169397s [ 吞吐率:5.90req/s ] 内存消耗:4,753.31kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=2681ebacbc6df04d8d08045597ba2bdc
  1. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_static.php ( 6.05 KB )
  7. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/ralouphie/getallheaders/src/getallheaders.php ( 1.60 KB )
  10. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  11. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  12. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  13. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  14. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  15. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  16. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  17. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  18. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  19. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions_include.php ( 0.16 KB )
  21. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions.php ( 5.54 KB )
  22. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  23. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  24. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  25. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/provider.php ( 0.19 KB )
  26. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  27. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  28. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  29. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/common.php ( 0.03 KB )
  30. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  32. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/alipay.php ( 3.59 KB )
  33. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  34. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/app.php ( 0.95 KB )
  35. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cache.php ( 0.78 KB )
  36. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/console.php ( 0.23 KB )
  37. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cookie.php ( 0.56 KB )
  38. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/database.php ( 2.48 KB )
  39. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/filesystem.php ( 0.61 KB )
  40. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/lang.php ( 0.91 KB )
  41. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/log.php ( 1.35 KB )
  42. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/middleware.php ( 0.19 KB )
  43. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/route.php ( 1.89 KB )
  44. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/session.php ( 0.57 KB )
  45. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/trace.php ( 0.34 KB )
  46. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/view.php ( 0.82 KB )
  47. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/event.php ( 0.25 KB )
  48. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  49. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/service.php ( 0.13 KB )
  50. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/AppService.php ( 0.26 KB )
  51. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  52. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  53. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  54. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  55. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  56. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/services.php ( 0.14 KB )
  57. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  58. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  59. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  60. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  61. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  62. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  63. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  64. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  65. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  66. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  67. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  68. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  69. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  70. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  71. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  72. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  73. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  74. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  75. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  76. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  77. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  78. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  79. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  80. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  81. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  82. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  83. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  84. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  85. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  86. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  87. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/Request.php ( 0.09 KB )
  88. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  89. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/middleware.php ( 0.25 KB )
  90. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  91. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  92. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  93. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  94. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  95. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  96. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  97. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  98. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  99. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  100. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  101. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  102. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  103. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/route/app.php ( 3.94 KB )
  104. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  105. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  106. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Index.php ( 9.87 KB )
  108. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/BaseController.php ( 2.05 KB )
  109. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  110. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  111. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  112. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  113. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  114. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  115. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  116. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  117. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  118. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  119. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  120. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  121. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  122. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  123. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  124. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  125. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  126. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  127. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  128. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  129. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  130. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  131. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  132. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  133. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  134. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  135. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Es.php ( 3.30 KB )
  136. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  137. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  138. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  139. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  140. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  141. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  142. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  143. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  144. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/runtime/temp/c935550e3e8a3a4c27dd94e439343fdf.php ( 31.50 KB )
  145. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000790s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000882s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000341s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000297s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000590s ]
  6. SELECT * FROM `set` [ RunTime:0.000264s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000724s ]
  8. SELECT * FROM `article` WHERE `id` = 620302 LIMIT 1 [ RunTime:0.000748s ]
  9. UPDATE `article` SET `lasttime` = 1778678702 WHERE `id` = 620302 [ RunTime:0.000831s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000277s ]
  11. SELECT * FROM `article` WHERE `id` < 620302 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000443s ]
  12. SELECT * FROM `article` WHERE `id` > 620302 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000411s ]
  13. SELECT * FROM `article` WHERE `id` < 620302 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.000656s ]
  14. SELECT * FROM `article` WHERE `id` < 620302 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.001075s ]
  15. SELECT * FROM `article` WHERE `id` < 620302 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001242s ]
0.171097s