Instructions to use syssec-utd/py315-pylingual-v7-segmenter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use syssec-utd/py315-pylingual-v7-segmenter with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="syssec-utd/py315-pylingual-v7-segmenter")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("syssec-utd/py315-pylingual-v7-segmenter") model = AutoModelForTokenClassification.from_pretrained("syssec-utd/py315-pylingual-v7-segmenter", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from syssec-utd/py315-pylingual-v7-segmenter: direct link, hf CLI and curl.
- Browser
- Download file 1.97 kB
-
https://huggingface.co/syssec-utd/py315-pylingual-v7-segmenter/resolve/main/README.md
- Command line
-
hf download hf://syssec-utd/py315-pylingual-v7-segmenter/README.md
-
curl -L -o README.md https://huggingface.co/syssec-utd/py315-pylingual-v7-segmenter/resolve/main/README.md
1.97 kB
metadata
library_name: transformers
base_model: syssec-utd/py315-pylingual-v7-mlm
tags:
- generated_from_trainer
metrics:
- precision
- recall
- f1
- accuracy
model-index:
- name: py315-pylingual-v7-segmenter
results: []
py315-pylingual-v7-segmenter
This model is a fine-tuned version of syssec-utd/py315-pylingual-v7-mlm on the syssec-utd/segmentation-py315-pylingual-v7-tokenized dataset. It achieves the following results on the evaluation set:
- Loss: 0.0152
- Precision: 0.9917
- Recall: 0.9925
- F1: 0.9921
- Accuracy: 0.9978
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 64
- eval_batch_size: 8
- seed: 42
- distributed_type: multi-GPU
- num_devices: 3
- total_train_batch_size: 192
- total_eval_batch_size: 24
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 2
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.0200 | 1.0 | 32285 | 0.0168 | 0.9892 | 0.9926 | 0.9909 | 0.9976 |
| 0.0108 | 2.0 | 64570 | 0.0152 | 0.9917 | 0.9925 | 0.9921 | 0.9978 |
Framework versions
- Transformers 5.17.0
- Pytorch 2.14.0+cu130
- Datasets 5.0.1
- Tokenizers 0.23.2