Я получаю это сообщение при загрузке точно настроенной модели Берта с прямым нейронным сетевым словом на последнем слое из каталога контрольных точек.
This IS expected if you are initializing FlaubertForSequenceClassification fr om the checkpoint of a model trained on another task or with another architectu re (e.g. initializing a BertForSequenceClassification model from a BertForPreTr aining model).
- This IS NOT expected if you are initializing FlaubertForSequenceClassificatio n from the checkpoint of a model that you expect to be exactly identical (initi alizing a BertForSequenceClassification model from a BertForSequenceClassificat ion model).
Some weights of FlaubertForSequenceClassification were not initialized from the model checkpoint at /gpfswork/rech/kpf/umg16uw/results_hf/sm/checkpoint-10 and are newly initialized: ['sequence_summary.summary.weight', 'sequence_summary.s ummary.bias']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
На самом деле модель уже обучена на огромном наборе данных, и я загрузил ее, чтобы сделать вывод на основе нового набора данных.
model = XXXForSequenceClassification.from_pretrained(modelForClass, num_labels=3)
test_file = '/g/012.xml'
modelForClass = '/g/checkpoint-10'
test = preprare_data(PRE_TRAINED_MODEL_NAME, test_file)
pred = predict(test, test_model)
***** Running Prediction *****
Num examples = 5
Batch size = 8
0%| | 0/1 [00:00
Подробнее здесь: https://stackoverflow.com/questions/703 ... k-to-be-ab
Предупреждение: вам, вероятно, следует ОБУЧИТЬ эту модель на последующих задачах, чтобы иметь возможность использовать е ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как обучить модель по 11+ параметрам в поезде, но использовать 2 параметра в тесте
Anonymous » » в форуме Python - 0 Ответы
- 19 Просмотры
-
Последнее сообщение Anonymous
-