Skip to content

Deprecated backend sendnn_decoder, #29

Open
@rzbhatti

Description

@rzbhatti

When using the model.compile(backend="sendnn_decoder") the backend shows the following warning:

You're using a deprecated backend. Please use sendnn in conjunction with warmup_mode

This is because we are not warming up using warmup_mode with backend=“sendnn”, it should be done as following:

model.forward = torch.compile(model.forward, backend = "sendnn", dynamic=False)

# warmup
with torch_sendnn.warmup_mode():
     generate(model, ...)

It is currently being used in the following locations:

model.compile(backend="sendnn_decoder")

model.compile(backend="sendnn_decoder")

model.compile(backend="sendnn_decoder")

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions