CoolFace
Modelpublic

agentlans/GIST-small-finefineweb

sourceHugging Facemitupdated 27d agoView on Hugging Face
0likes21downloads
Model Card

GIST-small-finefineweb

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

  • Model type: bert
  • Problem Type: singlelabelclassification
  • Number of Labels: 67
  • 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-finefineweb"
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
0aerospace
1agronomy
2artistic
3astronomy
4atmospheric_science
5automotive
6beauty
7biology
8celebrity
9chemistry
10christianity
11civil_engineering
12communication_engineering
13computerscienceand_technology
14design
15dramaandfilm
16economics
17electronic_science
18entertainment
19environmental_science
20fashion
21finance
22food
23gamble
24game
25geography
26health
27history
28hobby
29hydraulic_engineering
30instrument_science
31journalismandmedia_communication
32landscape_architecture
33law
34library
35literature
36materials_science
37mathematics
38mechanical_engineering
39medical
40mining_engineering
41movie
42musicanddance
43news
44nuclear_science
45ocean_science
46optical_engineering
47painting
48pet
49petroleumandnaturalgasengineering
50philosophy
51photo
52physics
53politics
54psychology
55public_administration
56relationship
57sociology
58sports
59statistics
60systems_science
61textile_science
62topicality
63transportation_engineering
64travel
65urban_planning
66weapons_science

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 Loss1.3238
Validation Loss1.4201
Validation F1 ScoreN/A
Total FLOPs5.6337e+15

For performance on the test set, click here.

Speed Performance

  • Training Runtime: 720.633 seconds
  • Train Samples per Second: 474.166
  • Evaluation Runtime: 10.5434 seconds
  • Eval Samples per Second: 1906.406

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

Training Logs History

StepEpochLearning RateTraining LossValidation LossValidation F1
5000.0354.9416e-053.8054N/AN/A
10000.074.8831e-053.0202N/AN/A
15000.1054.8245e-052.5217N/AN/A
20000.144.7660e-052.2352N/AN/A
25000.1764.7075e-052.0559N/AN/A
30000.2114.6489e-051.9031N/AN/A
35000.2464.5904e-051.8326N/AN/A
40000.2814.5319e-051.7487N/AN/A
45000.3164.4734e-051.6888N/AN/A
50000.3514.4148e-051.6789N/AN/A
55000.3864.3563e-051.6413N/AN/A
60000.4214.2978e-051.5827N/AN/A
65000.4574.2392e-051.5813N/AN/A
70000.4924.1807e-051.588N/AN/A
75000.5274.1222e-051.5676N/AN/A
80000.5624.0637e-051.5305N/AN/A
85000.5974.0051e-051.5383N/AN/A
90000.6323.9466e-051.5032N/AN/A
95000.6673.8881e-051.4895N/AN/A
100000.7023.8295e-051.5036N/AN/A
105000.7373.7710e-051.4761N/AN/A
110000.7733.7125e-051.4902N/AN/A
115000.8083.6540e-051.4635N/AN/A
120000.8433.5954e-051.4686N/AN/A
125000.8783.5369e-051.4882N/AN/A
130000.9133.4784e-051.4641N/AN/A
135000.9483.4198e-051.4443N/AN/A
140000.9833.3613e-051.4215N/AN/A
142381.0N/AN/A1.4201N/A
145001.0183.3028e-051.3587N/AN/A
150001.0543.2443e-051.236N/AN/A
155001.0893.1857e-051.2194N/AN/A
160001.1243.1272e-051.2579N/AN/A
165001.1593.0687e-051.2694N/AN/A
170001.1943.0101e-051.1975N/AN/A
175001.2292.9516e-051.2192N/AN/A
180001.2642.8931e-051.2279N/AN/A
185001.2992.8346e-051.2407N/AN/A
190001.3342.7760e-051.2168N/AN/A
195001.372.7175e-051.242N/AN/A
200001.4052.6590e-051.2581N/AN/A
205001.442.6004e-051.2209N/AN/A
210001.4752.5419e-051.2384N/AN/A
215001.512.4834e-051.2286N/AN/A
220001.5452.4248e-051.2079N/AN/A
225001.582.3663e-051.2561N/AN/A
230001.6152.3078e-051.206N/AN/A
235001.6512.2493e-051.2333N/AN/A
240001.6862.1907e-051.2342N/AN/A
245001.7212.1322e-051.1834N/AN/A
250001.7562.0737e-051.2109N/AN/A
255001.7912.0151e-051.2247N/AN/A
260001.8261.9566e-051.2074N/AN/A
265001.8611.8981e-051.2203N/AN/A
270001.8961.8396e-051.1754N/AN/A
275001.9311.7810e-051.2144N/AN/A
280001.9671.7225e-051.188N/AN/A
284762.0N/AN/A1.3501N/A
285002.0021.6640e-051.2042N/AN/A
290002.0371.6054e-050.9849N/AN/A
295002.0721.5469e-051.0076N/AN/A
300002.1071.4884e-051.0033N/AN/A
305002.1421.4299e-050.9742N/AN/A
310002.1771.3713e-050.9856N/AN/A
315002.2121.3128e-051.0047N/AN/A
320002.2481.2543e-051.0172N/AN/A
325002.2831.1957e-050.9914N/AN/A
330002.3181.1372e-050.965N/AN/A
335002.3531.0787e-050.991N/AN/A
340002.3881.0202e-050.992N/AN/A
345002.4239.6163e-061.0056N/AN/A
350002.4589.0310e-060.9602N/AN/A
355002.4938.4457e-060.9863N/AN/A
360002.5287.8604e-060.9887N/AN/A
365002.5647.2751e-060.9745N/AN/A
370002.5996.6898e-060.9703N/AN/A
375002.6346.1046e-060.9777N/AN/A
380002.6695.5193e-060.9431N/AN/A
385002.7044.9340e-060.9579N/AN/A
390002.7394.3487e-060.9422N/AN/A
395002.7743.7634e-060.9549N/AN/A
400002.8093.1781e-060.9579N/AN/A
405002.8452.5928e-060.9495N/AN/A
410002.882.0075e-060.9523N/AN/A
415002.9151.4223e-060.9693N/AN/A
420002.958.3696e-070.9742N/AN/A
425002.9852.5167e-070.988N/AN/A
427143.0N/AN/A1.3795N/A

</details>

Framework Versions

  • Transformers: 5.14.0.dev0
  • PyTorch: 2.9.1+cu128