chunk_content: ...     pad_token_id=tokenizer.eos_token_id,
  ...     use_cache=False,
  ...     device_map={"": rank},
  ...     torch_dtype=torch.float16,
  ...     load_in_8bit=True,
  ... )
  >>> model = prepare_model_for_int8_training(model)
  >>> lora_model = get_peft_model(model, config)
  Attributes:
  model (PreTrainedModel) — The model to be adapted.
  peft_config (LoraConfig): The configuration of the Lora model.
  
  add_weighted_adapter
  
  <
  source
  >
  (
  adapters
  weights
  ad