Views
No views yet
openai-community/gpt2-xl for classification, trained on lakshmi25npathi_imdb-dataset-of-50k-movie-reviews_review_sentiment_train.jsonl with 4,102 examples. Its final classification_f1 score was 0.8882.| Field | Value |
|---|---|
| Base model | openai-community/gpt2-xl |
| Method | LoRA |
| Checkpoint type | lora |
| Publish version | v2 |
| GPU | T4 |
| Max steps | 50 |
| Learning rate | 0.0001 |
| Seed | 42 |
| Dataset | lakshmi25npathi_imdb-dataset-of-50k-movie-reviews_review_sentiment_train.jsonl |
| Training examples | 4102 |
| Dataset artifact | 8c9516bb7750aaf508b195fc0c6df51599df0d9014508d0db75219b830157343 |
| Config artifact | 374b9cfd62da458a7dd3765373775d5ed1b569666658b2e0bb081ae2f44466c3 |
riva_config.yaml, and the run provenance is included in riva_provenance.json.| Phase | Metric | Value | Correct / Total | Step |
|---|---|---|---|---|
| baseline | classification_f1 | 0.0000 | 0 / 50 | 0 |
| step | classification_f1 | 0.0303 | 1 / 50 | 10 |
| step | classification_f1 | 0.8496 | 39 / 50 | 20 |
| step | classification_f1 | 0.8730 | 40 / 50 | 30 |
| step | classification_f1 | 0.8882 | 41 / 50 | 40 |
| step | classification_f1 | 0.8882 | 41 / 50 | 50 |
| final | classification_f1 | 0.8882 | 41 / 50 | 50 |
| test | classification_f1 | 0.8738 | 405 / 500 | 50 |
1from peft import AutoPeftModelForCausalLM
2from transformers import AutoTokenizer
3
4repo_id = "HassanJbr/gpt2-xl-classification-lora-riva"
5tokenizer = AutoTokenizer.from_pretrained(repo_id)
6model = AutoPeftModelForCausalLM.from_pretrained(repo_id, device_map="auto")
7
8prompt = "Write your prompt here"
9inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
10outputs = model.generate(**inputs, max_new_tokens=128)
11print(tokenizer.decode(outputs[0], skip_special_tokens=True))