Skip to content

Instantly share code, notes, and snippets.

@hadifar
Created August 19, 2023 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadifar/859f3e8df2b44e577036f30d09c3c915 to your computer and use it in GitHub Desktop.
Save hadifar/859f3e8df2b44e577036f30d09c3c915 to your computer and use it in GitHub Desktop.
model_name = 'model/classifier'
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
model.push_to_hub('hadifar/xxx')
tokenizer.push_to_hub('hadifar/xxx')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment