MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / test_t5.py

File test_t5.py

SwissArmyTransformer/examples/t5/test_t5.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from transformers import T5Model, T5ForConditionalGeneration, T5Tokenizer
2device = 'cuda:1'
3tokenizer = T5Tokenizer.from_pretrained("t5-large")
4model = T5ForConditionalGeneration.from_pretrained("/dataset/fd5061f6/yanan/huggingface_models/t5-xl-lm-adapt")

Callers

nothing calls this directly

Calls 3

toMethod · 0.80
from_pretrainedMethod · 0.45
backwardMethod · 0.45

Tested by

no test coverage detected