Views
No views yet
Fakhri2503/xLSTM) untuk NER task pada dataset HOASA.Fakhri2503/xLSTM)| Strategy | Precision | Recall | F1 |
|---|---|---|---|
| Full Freeze | 0.7571 | 0.6830 | 0.7181 |
| Full Unfreeze | 0.7848 | 0.7299 | 0.7563 |
1# Load config
2from huggingface_hub import hf_hub_download
3import json, torch
4
5config_path = hf_hub_download('Fakhri2503/FineTuneBi-xLSTM', 'config.json')
6with open(config_path) as f: config = json.load(f)
7label2id = config['label2id']
8id2label = {int(k): v for k, v in config['id2label'].items()}
9
10# Load model (perlu class BiXLSTMLM + BiXLSTMCrfNER dari notebook)
11ckpt = hf_hub_download('Fakhri2503/FineTuneBi-xLSTM', 'full_unfreeze_model.pt')
12model.load_state_dict(torch.load(ckpt, map_location='cpu'))