"torchvision/vscode:/vscode.git/clone" did not exist on "6fa2469b0b1d0f86bc2fcac915cd64efe2340109"
Unverified Commit fec76a48 authored by Thomas Wolf's avatar Thomas Wolf Committed by GitHub
Browse files

Update readme

parent 859c4417
......@@ -82,7 +82,8 @@ for model_class, tokenizer_class, pretrained_weights in MODELS:
# Encode text
input_ids = torch.tensor([tokenizer.encode("Here is some text to encode")])
last_hidden_states = model(input_ids)[0] # Models outputs are now tuples
with torch.no_grad():
last_hidden_states = model(input_ids)[0] # Models outputs are now tuples
# Each architecture is provided with several class for fine-tuning on down-stream tasks, e.g.
BERT_MODEL_CLASSES = [BertModel, BertForPreTraining, BertForMaskedLM, BertForNextSentencePrediction,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment