Instructions to use davanstrien/jim_crow_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use davanstrien/jim_crow_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="davanstrien/jim_crow_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("davanstrien/jim_crow_model") model = AutoModelForSequenceClassification.from_pretrained("davanstrien/jim_crow_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from davanstrien/jim_crow_model: direct link, hf CLI and curl.
- Browser
- Download file 1.9 kB
-
https://huggingface.co/davanstrien/jim_crow_model/resolve/main/README.md
- Command line
-
hf download hf://davanstrien/jim_crow_model/README.md
-
curl -L -o README.md https://huggingface.co/davanstrien/jim_crow_model/resolve/main/README.md
1.9 kB
metadata
library_name: transformers
license: apache-2.0
base_model: Qwen/Qwen2.5-1.5B
tags:
- generated_from_trainer
metrics:
- accuracy
- f1
- precision
- recall
model-index:
- name: jim_crow_model
results: []
jim_crow_model
This model is a fine-tuned version of Qwen/Qwen2.5-1.5B on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.0297
- Accuracy: 0.9944
- F1: 0.9888
- Precision: 0.9778
- Recall: 1.0
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: 2
- eval_batch_size: 4
- seed: 42
- gradient_accumulation_steps: 16
- total_train_batch_size: 32
- 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: cosine
- lr_scheduler_warmup_steps: 30
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 2.3413 | 1.0 | 51 | 0.0297 | 0.9944 | 0.9888 | 0.9778 | 1.0 |
| 1.3222 | 2.0 | 102 | 0.0278 | 0.9944 | 0.9888 | 0.9778 | 1.0 |
| 0.8297 | 3.0 | 153 | 0.0269 | 0.9944 | 0.9888 | 0.9778 | 1.0 |
Framework versions
- Transformers 5.23.0
- Pytorch 2.15.0+cu132
- Datasets 5.2.0
- Tokenizers 0.23.3