File size: 307 Bytes
d18f759
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
license: apache-2.0
---

### Model Loading
```python
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
```python
model.predict(xgb.DMatrix([feature]))[0]
```