Spaces:
Runtime error
Runtime error
Upload app.py with huggingface_hub
Browse files6 unmodified lines7891011121314151617186 unmodified lines# Load model and tokenizerprint(f"Loading model: {MODEL_ID}")tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True)model = AutoModelForCausalLM.from_pretrained(MODEL_ID,torch_dtype=torch.bfloat16,device_map="auto",trust_remote_code=True)print("Model loaded successfully!")6 unmodified lines78910111213141516176 unmodified lines# Load model and tokenizerprint(f"Loading model: {MODEL_ID}")tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)model = AutoModelForCausalLM.from_pretrained(MODEL_ID,torch_dtype=torch.bfloat16,device_map="auto")print("Model loaded successfully!")
app.py+2-3