teachyourselfcoding commited on
Commit
05bf9d8
1 Parent(s): 725dc81

Update generate.py

Browse files
Files changed (1) hide show
  1. generate.py +1 -1
generate.py CHANGED
@@ -13,7 +13,7 @@ from utils import StreamPeftGenerationMixin,StreamLlamaForCausalLM
13
  from transformers import LlamaTokenizer, LlamaForCausalLM, GenerationConfig
14
 
15
  parser = argparse.ArgumentParser()
16
- TOT_CUDA="0,1" #Upgrade bitsandbytes to the latest version to enable balanced loading of multiple GPUs, for example: pip install bitsandbytes==0.39.0
17
  BASE_MODEL="ziqingyang/chinese-llama-2-13b"
18
  LORA_PATH="teachyourselfcoding/llama-2-13b-22sep"
19
  USE_LOCAL=1 # 1: use local model, 0: use huggingface model
 
13
  from transformers import LlamaTokenizer, LlamaForCausalLM, GenerationConfig
14
 
15
  parser = argparse.ArgumentParser()
16
+ TOT_CUDA="0" #Upgrade bitsandbytes to the latest version to enable balanced loading of multiple GPUs, for example: pip install bitsandbytes==0.39.0
17
  BASE_MODEL="ziqingyang/chinese-llama-2-13b"
18
  LORA_PATH="teachyourselfcoding/llama-2-13b-22sep"
19
  USE_LOCAL=1 # 1: use local model, 0: use huggingface model