jiaxiang zhang

Results 1 issues of jiaxiang zhang

#微调模型加载 model_path = '/home/fintuned_model/remini_hardmined_fintuned10_rawmodel/checkpoint-1083' tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, torch_dtype=torch.bfloat16) # 将模型转移到 GPU device = torch.device("cuda" if torch.cuda.is_available() else "cpu") model = model.to(device) model.eval() file_path = '/home/test_model/result/全部底库_500测试集召回结果.xlsx'...