Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different FPS with same model and parameters. #154

Open
olegchomp opened this issue Jun 10, 2024 · 0 comments
Open

Different FPS with same model and parameters. #154

olegchomp opened this issue Jun 10, 2024 · 0 comments

Comments

@olegchomp
Copy link

olegchomp commented Jun 10, 2024

Difference is around 5 FPS, tested with sd_turbo & 1 batch size. On inspect trt engine found that faster engine have different info inside. Also there is difference size slower engine is 2053166 kb, faster engine is 2079951 kb, and vae engine is 100 kb difference also.
Result was achieved only once, since that all engines generate slower. Tried even with clean venv.

slower engine:

"Layers": [{
  "Name": "/conv_in/Cast",
  "LayerType": "NoOp",
  "Inputs": [
  {
    "Name": "sample",
    "Location": "Device",
    "Dimensions": [1,4,64,64],
    "Format/Datatype": "Row major linear FP32"
  }],
 "Outputs": [
  {
    "Name": "/conv_in/Cast_output_0",
    "Location": "Device",
    "Dimensions": [1,4,64,64],
    "Format/Datatype": "Row major linear FP32"
  }],
  "TacticValue": "0x0000000000000000",
  "StreamId": 0,
  "Metadata": ""
}

faster engine:

{"Layers": [{
  "Name": "/conv_in/Cast",
  "LayerType": "Reformat",
  "Inputs": [
  {
    "Name": "sample",
    "Location": "Device",
    "Dimensions": [1,4,64,64],
    "Format/Datatype": "Row major linear FP32"
  }],  "Outputs": [
  {
    "Name": "/conv_in/Cast_output_0",
    "Location": "Device",
    "Dimensions": [1,4,64,64],
    "Format/Datatype": "Channel major FP16 format where channel % 8 == 0"
  }],
  "ParameterType": "Reformat",
  "Origin": "CAST",
  "TacticValue": "0x00000000000003e8",
  "StreamId": 0,
  "Metadata": ""
}
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

No branches or pull requests

1 participant