Spaces:
Sleeping
Sleeping
Download models/student_model.py from jaothan/GenAI_project: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/spaces/jaothan/GenAI_project/resolve/main/models/student_model.py
- Command line
-
hf download hf://spaces/jaothan/GenAI_project/models/student_model.py
-
curl -L -o student_model.py https://huggingface.co/spaces/jaothan/GenAI_project/resolve/main/models/student_model.py
280 Bytes
| from transformers import DistilBertForSequenceClassification | |
| def get_student_model(config): | |
| model = DistilBertForSequenceClassification.from_pretrained('distilbert-base-uncased') | |
| model.config.hidden_size = config['model']['student']['hidden_size'] | |
| return model | |