Files
TERES_fastapi_backend/rag/res/deepdoc
2025-11-06 17:15:46 +08:00
..
2025-11-06 17:15:46 +08:00
2025-11-06 17:15:46 +08:00
2025-11-06 17:15:46 +08:00
2025-11-06 17:15:46 +08:00

license
license
apache-2.0

Model Loading

import xgboost as xgb
import torch

model = xgb.Booster()
if torch.cuda.is_available():
model.set_param({"device": "cuda"})
model.load_model('InfiniFlow/text_concat_xgb_v1.0')

Prediction

model.predict(xgb.DMatrix([feature]))[0]