class_docstr: Cover the test for models default.
  
  Default means no specific features is being enabled on the model.
class_docstr_tok: ["Cover","the","test","for","models","default",".","Default","means","no","specific","features","is","being","enabled","on","the","model","."]
docstr: External data format is required only if the serialized size of the parameters if bigger than 2Gb
docstr_tok: ["External","data","format","is","required","only","if","the","serialized","size","of","the","parameters","if","bigger","than","2Gb"]
code: def test_use_external_data_format(self):
      """
      External data format is required only if the serialized size of the parameters if bigger than 2Gb
      """
      TWO_GB_LIMIT = EXTERNAL_DATA_FORMAT_SIZE_LIMIT
  
      # No parameters
      self.assertFalse(OnnxConfig.use_external_data_format(0))
  
      # Some parameters
      self.assertFalse(OnnxConfig.use_external_data_format(1))
  
      # Almost 2Gb parameters
      self.assertFalse(
          OnnxConfig.use_external_data_format(
              (TWO_GB_LIMIT - 1) // ParameterFormat.Float.size
          )
      )
  
      # Exactly 2Gb parameters
      self.assertTrue(OnnxConfig.use_external_data_format(TWO_GB_LIMIT))
  
      # More than 2Gb parameters
      self.assertTrue(
          OnnxConfig.use_external_data_format(
              (TWO_GB_LIMIT + 1) // ParameterFormat.Float.size
          )
      )
  
imports: import os
  from pathlib import Path
  from tempfile import NamedTemporaryFile
  from unittest import TestCase
  from unittest.mock import patch
  import pytest
  from parameterized import parameterized
  from transformers import AutoConfig, PreTrainedTokenizerBase, is_tf_available, is_torch_available
  from transformers.onnx import EXTERNAL_DATA_FORMAT_SIZE_LIMIT, OnnxConfig, OnnxConfigWithPast, ParameterFormat, export, validate_model_outputs
  from transformers.onnx.utils import compute_effective_axis_dimension, compute_serialized_parameters_size, get_preprocessor
  from transformers.testing_utils import require_onnx, require_rjieba, require_tf, require_torch, require_vision, slow
label_desc: Use image node_id 1 for calling the OnnxConfigTestCaseV2 obj's underlying member method code with example usage: obj.test_use_external_data_format() without return types