Skip to content

use with transformers #13

@vinnitu

Description

@vinnitu
from transformers import AutoTokenizer, AutoModelForCausalLM

path = './gpt2/m_checkpoint-3364613'

tokenizer = AutoTokenizer.from_pretrained(path)
model = AutoModelForCausalLM.from_pretrained(path)

image

OSError: Model name './gpt2/m_checkpoint-3364613' was not found in tokenizers model name list (gpt2, gpt2-medium, gpt2-large, gpt2-xl, distilgpt2). We assumed './gpt2/m_checkpoint-3364613' was a path, a model identifier, or url to a directory containing vocabulary files named ['vocab.json', 'merges.txt'] but couldn't find such vocabulary files at this path or url.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions