EasyNLP缓存位置
    Saving to: ‘/home/zhangjie.ll/.easynlp/modelzoo/bert-base-uncased.tgz’

    image.png

    classifier.weight
    tensor([[-0.0426, 0.0272, 0.0330, …, -0.0029, -0.0105, -0.0113],
    [-0.0044, -0.0274, 0.0177, …, 0.0089, -0.0291, 0.0056]],
    device=’cuda:0’)
    classifier.bias
    tensor([-0.0006, 0.0006], device=’cuda:0’)

    一个GEEP分类器的权重
    classifiers.0.output_layer_0.weight
    classifiers.0.output_layer_0.bias
    classifiers.0.self_atten.linear_layers.0.weight
    classifiers.0.self_atten.linear_layers.0.bias
    classifiers.0.self_atten.linear_layers.1.weight
    classifiers.0.self_atten.linear_layers.1.bias
    classifiers.0.self_atten.linear_layers.2.weight
    classifiers.0.self_atten.linear_layers.2.bias
    classifiers.0.self_atten.final_linear.weight
    classifiers.0.self_atten.final_linear.bias
    classifiers.0.output_layer_1.weight
    classifiers.0.output_layer_1.bias
    classifiers.0.output_layer_2.weight
    classifiers.0.output_layer_2.bias

    bert分类器原始性能
    > initializing torch distributed …
    Init dist done. World size: 1, rank 0, l_rank 0
    > setting random seeds to 1234 …
    [2022-02-28 15:21:54,455 INFO] Loading model…
    [2022-02-28 15:21:54,482 INFO] Load finished!
    [2022-02-28 15:21:55,670 INFO] Inference time = 0.15s, [0.3660 ms / sample]
    [2022-02-28 15:21:55,670 INFO] Eval loss: 0.4543831210870009
    [2022-02-28 15:21:55,671 INFO] Accuracy: 0.8725490196078431
    [2022-02-28 15:21:55,674 INFO] F1: 0.9112627986348123
    [2022-02-28 15:21:55,674 INFO] Duration time: 8.291800737380981 s