CoolFace
Modelpublic

agentlans/GIST-small-weborganizer-format

sourceHugging Facemitupdated 22d agoView on Hugging Face
0likes25downloads
Model Card

GIST-small-weborganizer-format

A fine-tuned version of the bert architecture (BertForSequenceClassification) optimized for the text-classification task.

  • Model type: bert
  • Problem Type: singlelabelclassification
  • Number of Labels: 24
  • Vocabulary Size: 30522
  • License: MIT

Use

To get started with this model in Python using the Hugging Face Transformers library, run the following code:

python
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

model_id = "agentlans/GIST-small-weborganizer-format"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)

text = "Replace this with your input text."
inputs = tokenizer(text, return_tensors="pt")

with torch.no_grad():
    logits = model(**inputs).logits

predicted_class_id = logits.argmax().item()
predicted_class_name = model.config.id2label[predicted_class_id]

print(f"Predicted Class ID: {predicted_class_id}")
print(f"Predicted Class Name: {predicted_class_name}")

Intended Uses & Limitations

Intended Use

This model is designed for sequence classification tasks. Below are the specific class labels mapped to their corresponding IDs:

Label IDLabel Name
0Academic Writing
1Content Listing
2Creative Writing
3Customer Support Page
4Discussion Forum / Comment Section
5FAQs
6Incomplete Content
7Knowledge Article
8Legal Notices
9Listicle
10News Article
11Nonfiction Writing
12Organizational About Page
13Organizational Announcement
14Personal About Page
15Personal Blog
16Product Page
17Q&A Forum
18Spam / Ads
19Structured Data
20Technical Writing
21Transcript / Interview
22Tutorial / How-To Guide
23User Reviews

Training Details

Hyperparameters

The following hyperparameters were used during fine-tuning:

  • Learning Rate: 5e-05
  • Train Batch Size: 8
  • Eval Batch Size: 8
  • Optimizer: OptimizerNames.ADAMWTORCHFUSED
  • Number of Epochs: 3.0
  • Mixed Precision: BF16

<details> <summary><b>Show Advanced Training Configuration</b></summary>

Optimization & Regularization
  • Gradient Accumulation Steps: 1
  • Learning Rate Scheduler: SchedulerType.LINEAR
  • Warmup Steps: 0
  • Warmup Ratio: None
  • Weight Decay: 0.0
  • Max Gradient Norm: 1.0
Hardware & Reproducibility
  • Number of GPUs: 1
  • Seed: 42

</details>

Training Results & Evaluation

During fine-tuning, the model achieved the following results on the evaluation set:

MetricValue
Train Loss0.9277
Validation Loss0.9929
Validation F1 Score0.65
Total FLOPs3.9539e+15

For performance on the test set, click here.

Speed Performance

  • Training Runtime: 513.002 seconds
  • Train Samples per Second: 467.834
  • Evaluation Runtime: 5.5084 seconds
  • Eval Samples per Second: 1815.411

<details> <summary><b>Show Detailed Training Logs</b></summary>

Training Logs History

StepEpochLearning RateTraining LossValidation LossValidation F1
5000.054.9168e-052.3318N/AN/A
10000.14.8335e-051.7876N/AN/A
15000.154.7502e-051.562N/AN/A
20000.24.6668e-051.4822N/AN/A
25000.254.5835e-051.4085N/AN/A
30000.34.5002e-051.3994N/AN/A
35000.354.4168e-051.3256N/AN/A
40000.44.3335e-051.312N/AN/A
45000.454.2502e-051.2419N/AN/A
50000.54.1668e-051.2265N/AN/A
55000.554.0835e-051.2118N/AN/A
60000.64.0002e-051.2177N/AN/A
65000.653.9168e-051.1694N/AN/A
70000.73.8335e-051.1655N/AN/A
75000.753.7502e-051.163N/AN/A
80000.83.6668e-051.1284N/AN/A
85000.853.5835e-051.1265N/AN/A
90000.93.5002e-051.1115N/AN/A
95000.953.4168e-051.0835N/AN/A
100001.03.3335e-051.12171.03820.6024
105001.053.2502e-050.8708N/AN/A
110001.13.1668e-050.8881N/AN/A
115001.153.0835e-050.8711N/AN/A
120001.23.0002e-050.8619N/AN/A
125001.252.9168e-050.8482N/AN/A
130001.32.8335e-050.8853N/AN/A
135001.352.7502e-050.8763N/AN/A
140001.42.6668e-050.8133N/AN/A
145001.452.5835e-050.8651N/AN/A
150001.52.5002e-050.8643N/AN/A
155001.552.4168e-050.8345N/AN/A
160001.62.3335e-050.8639N/AN/A
165001.652.2502e-050.8203N/AN/A
170001.72.1668e-050.8591N/AN/A
175001.752.0835e-050.865N/AN/A
180001.82.0002e-050.8697N/AN/A
185001.851.9168e-050.8591N/AN/A
190001.91.8335e-050.8308N/AN/A
195001.951.7502e-050.8422N/AN/A
200002.01.6668e-050.84530.99290.65
205002.051.5835e-050.6172N/AN/A
210002.11.5002e-050.6018N/AN/A
215002.151.4168e-050.6352N/AN/A
220002.21.3335e-050.5955N/AN/A
225002.251.2502e-050.5793N/AN/A
230002.31.1668e-050.5917N/AN/A
235002.351.0835e-050.6294N/AN/A
240002.41.0002e-050.592N/AN/A
245002.459.1683e-060.6163N/AN/A
250002.58.3350e-060.6245N/AN/A
255002.557.5017e-060.5715N/AN/A
260002.66.6683e-060.6191N/AN/A
265002.655.8350e-060.5893N/AN/A
270002.75.0017e-060.607N/AN/A
275002.754.1683e-060.5799N/AN/A
280002.83.3350e-060.5842N/AN/A
285002.852.5017e-060.5832N/AN/A
290002.91.6683e-060.5728N/AN/A
295002.958.3500e-070.5902N/AN/A
300003.01.6667e-090.5711.09980.6439

</details>

Framework Versions

  • Transformers: 5.14.0.dev0
  • PyTorch: 2.13.0+cu130