class_docstr: Tests for the AdaptionPrompt model.
  
  Some of these tests were adapted from `test_peft_model.py` (which has been refactored since), but since we haven't
  checked in the test checkpoints for Llama into `hf-internal-testing`, we separate them for now.
class_docstr_tok: ["Tests","for","the","AdaptionPrompt","model",".","Some","of","these","tests","were","adapted","from","`","test_peft_model.py","`","(","which","has","been","refactored","since",")",",","but","since","we","haven't","checked","in","the","test","checkpoints","for","Llama","into","`","hf-internal-testing","`",",","we","separate","them","for","now","."]
code: def setUp(self):
      # Check that llama is available in transformers package before running each test.
      if not is_llama_available():
          self.skipTest(
              "Llama not available in transformers. Skipping test."
          )
  
imports: import importlib
  import os
  import tempfile
  import unittest
  from unittest import TestCase
  import torch
  from torch.testing import assert_close
  from peft.mapping import get_peft_model
  from peft.peft_model import PeftModel
  from peft.tuners.adaption_prompt import AdaptionPromptConfig
  from peft.utils.other import prepare_model_for_int8_training
  from peft.utils.save_and_load import get_peft_model_state_dict
  from tests.testing_common import PeftCommonTester
label_desc: Use image node_id 1 for calling the AdaptionPromptTester obj's underlying member method code with example usage: obj.setUp() without return types