Spaces:
Paused
Paused
Commit ·
c3d009e
1
Parent(s): b98feba
Update main.py
Browse files12345678from transformers import AutoTokenizer, AutoModelForCausalLMimport torchdevice = torch.device("cuda" if torch.cuda.is_available() else "cpu")model = AutoModelForCausalLM.from_pretrained("E-Hospital/open-orca-platypus-2-lora-medical",123456789101112131415from transformers import AutoTokenizer, AutoModelForCausalLMimport torchimport logginglogger = logging.getLogger()device = torch.device("cuda" if torch.cuda.is_available() else "CPU")num_of_gpus = torch.cuda.device_count()logger.info("Getting gpus")logger.info(num_of_gpus)model = AutoModelForCausalLM.from_pretrained("E-Hospital/open-orca-platypus-2-lora-medical",
main.py+8-1