Inference needs the files above. The checkpoints/ folder may be present from training uploads; it is not required at runtime.
1pip install huggingface_hub
2huggingface-cli login # if private
3
4hf download GitRatBCSAD/gomi-sentiment \
5 --local-dir ./distilbert_sentiment \
6 --revision v1.0.0
1from transformers import AutoModelForSequenceClassification, AutoTokenizer
2
3repo = "GitRatBCSAD/gomi-sentiment"
4revision = "v1.0.0" # or None for main
5
6tokenizer = AutoTokenizer.from_pretrained(repo, revision=revision)
7model = AutoModelForSequenceClassification.from_pretrained(repo, revision=revision)
1git lfs install
2git clone https://huggingface.co/GitRatBCSAD/gomi-sentiment
3cd gomi-sentiment && git lfs pull
1GOMI_SENTIMENT_MODEL_REPO=GitRatBCSAD/gomi-sentiment
2GOMI_SENTIMENT_MODEL_REVISION=v1.0.0
3HF_TOKEN=your_token_if_private
Apache 2.0. Respect licenses of distilbert-base-uncased and the OpenReview training data when redistributing.