Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files41 unmodified lines4243444546474849505152535441 unmodified lines"""Load the model and tokenizer."""logger.info("Loading model on CPU...")model = AutoModelForCausalLM.from_pretrained("../boolean_model_llama/merged_llama",torch_dtype=torch.float32,device_map="cpu",trust_remote_code=True)tokenizer = AutoTokenizer.from_pretrained("../boolean_model_llama/merged_llama",trust_remote_code=True)41 unmodified lines4243444546474849505152535441 unmodified lines"""Load the model and tokenizer."""logger.info("Loading model on CPU...")model = AutoModelForCausalLM.from_pretrained("Zwounds/boolean-search-model",torch_dtype=torch.float32,device_map="cpu",trust_remote_code=True)tokenizer = AutoTokenizer.from_pretrained("Zwounds/boolean-search-model",trust_remote_code=True)
demo_cpu.py+2-2