Skip to content

[FEATURE] full examples with some known models from the HF in a Collab Notebook #63

@vackosar

Description

@vackosar

Is your feature request related to a problem? Please describe.
For example I cannot get HF Bert working. I don't know when I can use your project

import bminf
import torch 

encoded_input_cpu = tokenizer(text, return_tensors='pt').to('cpu')
model = BertModel.from_pretrained("bert-base-uncased").to('cpu')
# apply wrapper
with torch.cuda.device(0):
    model = bminf.wrapper(model.to('cpu'))
    with print_time_delta('generate'):
      output = model(**encoded_input_cpu)

Describe the solution you'd like
Can you provide full examples with some known models from the HF in a Collab Notebook?

Describe alternatives you've considered

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions