Upload TFBartForSequenceClassification
Browse files- README.md +61 -0
 - config.json +50 -0
 - tf_model.h5 +3 -0
 
    	
        README.md
    ADDED
    
    | 
         @@ -0,0 +1,61 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            ---
         
     | 
| 2 | 
         
            +
            library_name: transformers
         
     | 
| 3 | 
         
            +
            license: mit
         
     | 
| 4 | 
         
            +
            base_model: facebook/bart-large-mnli
         
     | 
| 5 | 
         
            +
            tags:
         
     | 
| 6 | 
         
            +
            - generated_from_keras_callback
         
     | 
| 7 | 
         
            +
            model-index:
         
     | 
| 8 | 
         
            +
            - name: zero-shot-prompt-classifier-bart-ft
         
     | 
| 9 | 
         
            +
              results: []
         
     | 
| 10 | 
         
            +
            ---
         
     | 
| 11 | 
         
            +
             
     | 
| 12 | 
         
            +
            <!-- This model card has been generated automatically according to the information Keras had access to. You should
         
     | 
| 13 | 
         
            +
            probably proofread and complete it, then remove this comment. -->
         
     | 
| 14 | 
         
            +
             
     | 
| 15 | 
         
            +
            # zero-shot-prompt-classifier-bart-ft
         
     | 
| 16 | 
         
            +
             
     | 
| 17 | 
         
            +
            This model is a fine-tuned version of [facebook/bart-large-mnli](https://huggingface.co/facebook/bart-large-mnli) on an unknown dataset.
         
     | 
| 18 | 
         
            +
            It achieves the following results on the evaluation set:
         
     | 
| 19 | 
         
            +
            - Train Loss: 0.4474
         
     | 
| 20 | 
         
            +
            - Train Accuracy: 0.7843
         
     | 
| 21 | 
         
            +
            - Validation Loss: 1.5942
         
     | 
| 22 | 
         
            +
            - Validation Accuracy: 0.4657
         
     | 
| 23 | 
         
            +
            - Epoch: 4
         
     | 
| 24 | 
         
            +
             
     | 
| 25 | 
         
            +
            ## Model description
         
     | 
| 26 | 
         
            +
             
     | 
| 27 | 
         
            +
            More information needed
         
     | 
| 28 | 
         
            +
             
     | 
| 29 | 
         
            +
            ## Intended uses & limitations
         
     | 
| 30 | 
         
            +
             
     | 
| 31 | 
         
            +
            More information needed
         
     | 
| 32 | 
         
            +
             
     | 
| 33 | 
         
            +
            ## Training and evaluation data
         
     | 
| 34 | 
         
            +
             
     | 
| 35 | 
         
            +
            More information needed
         
     | 
| 36 | 
         
            +
             
     | 
| 37 | 
         
            +
            ## Training procedure
         
     | 
| 38 | 
         
            +
             
     | 
| 39 | 
         
            +
            ### Training hyperparameters
         
     | 
| 40 | 
         
            +
             
     | 
| 41 | 
         
            +
            The following hyperparameters were used during training:
         
     | 
| 42 | 
         
            +
            - optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': False, 'is_legacy_optimizer': False, 'learning_rate': 5e-06, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
         
     | 
| 43 | 
         
            +
            - training_precision: float32
         
     | 
| 44 | 
         
            +
             
     | 
| 45 | 
         
            +
            ### Training results
         
     | 
| 46 | 
         
            +
             
     | 
| 47 | 
         
            +
            | Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
         
     | 
| 48 | 
         
            +
            |:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
         
     | 
| 49 | 
         
            +
            | 0.9969     | 0.5490         | 0.9182          | 0.6225              | 0     |
         
     | 
| 50 | 
         
            +
            | 0.7647     | 0.6601         | 1.0025          | 0.5441              | 1     |
         
     | 
| 51 | 
         
            +
            | 0.6465     | 0.7157         | 1.1472          | 0.5392              | 2     |
         
     | 
| 52 | 
         
            +
            | 0.5849     | 0.7418         | 1.1974          | 0.5049              | 3     |
         
     | 
| 53 | 
         
            +
            | 0.4474     | 0.7843         | 1.5942          | 0.4657              | 4     |
         
     | 
| 54 | 
         
            +
             
     | 
| 55 | 
         
            +
             
     | 
| 56 | 
         
            +
            ### Framework versions
         
     | 
| 57 | 
         
            +
             
     | 
| 58 | 
         
            +
            - Transformers 4.44.2
         
     | 
| 59 | 
         
            +
            - TensorFlow 2.18.0-dev20240717
         
     | 
| 60 | 
         
            +
            - Datasets 2.21.0
         
     | 
| 61 | 
         
            +
            - Tokenizers 0.19.1
         
     | 
    	
        config.json
    ADDED
    
    | 
         @@ -0,0 +1,50 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            {
         
     | 
| 2 | 
         
            +
              "_name_or_path": "facebook/bart-large-mnli",
         
     | 
| 3 | 
         
            +
              "_num_labels": 3,
         
     | 
| 4 | 
         
            +
              "activation_dropout": 0.0,
         
     | 
| 5 | 
         
            +
              "activation_function": "gelu",
         
     | 
| 6 | 
         
            +
              "add_final_layer_norm": false,
         
     | 
| 7 | 
         
            +
              "architectures": [
         
     | 
| 8 | 
         
            +
                "BartForSequenceClassification"
         
     | 
| 9 | 
         
            +
              ],
         
     | 
| 10 | 
         
            +
              "attention_dropout": 0.0,
         
     | 
| 11 | 
         
            +
              "bos_token_id": 0,
         
     | 
| 12 | 
         
            +
              "classif_dropout": 0.0,
         
     | 
| 13 | 
         
            +
              "classifier_dropout": 0.0,
         
     | 
| 14 | 
         
            +
              "d_model": 1024,
         
     | 
| 15 | 
         
            +
              "decoder_attention_heads": 16,
         
     | 
| 16 | 
         
            +
              "decoder_ffn_dim": 4096,
         
     | 
| 17 | 
         
            +
              "decoder_layerdrop": 0.0,
         
     | 
| 18 | 
         
            +
              "decoder_layers": 12,
         
     | 
| 19 | 
         
            +
              "decoder_start_token_id": 2,
         
     | 
| 20 | 
         
            +
              "dropout": 0.1,
         
     | 
| 21 | 
         
            +
              "encoder_attention_heads": 16,
         
     | 
| 22 | 
         
            +
              "encoder_ffn_dim": 4096,
         
     | 
| 23 | 
         
            +
              "encoder_layerdrop": 0.0,
         
     | 
| 24 | 
         
            +
              "encoder_layers": 12,
         
     | 
| 25 | 
         
            +
              "eos_token_id": 2,
         
     | 
| 26 | 
         
            +
              "forced_eos_token_id": 2,
         
     | 
| 27 | 
         
            +
              "gradient_checkpointing": false,
         
     | 
| 28 | 
         
            +
              "id2label": {
         
     | 
| 29 | 
         
            +
                "0": "contradiction",
         
     | 
| 30 | 
         
            +
                "1": "neutral",
         
     | 
| 31 | 
         
            +
                "2": "entailment"
         
     | 
| 32 | 
         
            +
              },
         
     | 
| 33 | 
         
            +
              "init_std": 0.02,
         
     | 
| 34 | 
         
            +
              "is_encoder_decoder": true,
         
     | 
| 35 | 
         
            +
              "label2id": {
         
     | 
| 36 | 
         
            +
                "contradiction": 0,
         
     | 
| 37 | 
         
            +
                "entailment": 2,
         
     | 
| 38 | 
         
            +
                "neutral": 1
         
     | 
| 39 | 
         
            +
              },
         
     | 
| 40 | 
         
            +
              "max_position_embeddings": 1024,
         
     | 
| 41 | 
         
            +
              "model_type": "bart",
         
     | 
| 42 | 
         
            +
              "normalize_before": false,
         
     | 
| 43 | 
         
            +
              "num_hidden_layers": 12,
         
     | 
| 44 | 
         
            +
              "output_past": false,
         
     | 
| 45 | 
         
            +
              "pad_token_id": 1,
         
     | 
| 46 | 
         
            +
              "scale_embedding": false,
         
     | 
| 47 | 
         
            +
              "transformers_version": "4.44.2",
         
     | 
| 48 | 
         
            +
              "use_cache": true,
         
     | 
| 49 | 
         
            +
              "vocab_size": 50265
         
     | 
| 50 | 
         
            +
            }
         
     | 
    	
        tf_model.h5
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:1e6ebc7886f491d50244a67fb7362a5010337968c38130e80e7232284ab3052e
         
     | 
| 3 | 
         
            +
            size 1629942064
         
     |