Run this model with HF Jobs
Run KotshinZ/gpt2-RMT-2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/KotshinZ/gpt2-RMT-2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/KotshinZ/gpt2-RMT-2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use KotshinZ/gpt2-RMT-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KotshinZ/gpt2-RMT-2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import RecurrentMemoryTransformer model = RecurrentMemoryTransformer.from_pretrained("KotshinZ/gpt2-RMT-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (6)
12345678910111213141516179 unmodified lines27282930313233---base_model: openai-community/gpt2datasets: HuggingFaceH4/Bespoke-Stratos-17klibrary_name: transformersmodel_name: gpt2-RMT-2tags:- generated_from_trainer- open-r1licence: license---# Model Card for gpt2-RMT-2This model is a fine-tuned version of [openai-community/gpt2](https://huggingface.co/openai-community/gpt2) on the [HuggingFaceH4/Bespoke-Stratos-17k](https://huggingface.co/datasets/HuggingFaceH4/Bespoke-Stratos-17k) dataset.It has been trained using [TRL](https://github.com/huggingface/trl).## Quick start9 unmodified lines## Training procedure[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/s18574s18574-/huggingface/runs/cvgunpd7)This model was trained with SFT.1234567891011121314159 unmodified lines25262728293031---base_model: openai-community/gpt2library_name: transformersmodel_name: gpt2-RMT-2tags:- generated_from_trainerlicence: license---# Model Card for gpt2-RMT-2This model is a fine-tuned version of [openai-community/gpt2](https://huggingface.co/openai-community/gpt2).It has been trained using [TRL](https://github.com/huggingface/trl).## Quick start9 unmodified lines## Training procedure[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/s18574s18574-/huggingface/runs/qiwktvbf)This model was trained with SFT.
3 unmodified lines4567891011123 unmodified lines"eval_samples_per_second": 265.729,"eval_steps_per_second": 66.614,"total_flos": 0.0,"train_loss": 2.016458841995117,"train_runtime": 997.6055,"train_samples": 16610,"train_samples_per_second": 91.954,"train_steps_per_second": 5.748}3 unmodified lines4567891011123 unmodified lines"eval_samples_per_second": 265.729,"eval_steps_per_second": 66.614,"total_flos": 0.0,"train_loss": 2.839574353448276,"train_runtime": 8.9764,"train_samples": 16610,"train_samples_per_second": 102.195,"train_steps_per_second": 6.461}
123version https://git-lfs.github.com/spec/v1oid sha256:8c1eac6af26e7d9bc716da8201dd940277d0992dcf499246be62e9109198c04bsize 326110968123version https://git-lfs.github.com/spec/v1oid sha256:58d5e0dc13a323943aae2894b7668f8dbe8ce152207af552e1747c76b2052c2dsize 326110968
12345678{"total_flos": 0.0,"train_loss": 2.016458841995117,"train_runtime": 997.6055,"train_samples": 16610,"train_samples_per_second": 91.954,"train_steps_per_second": 5.748}12345678{"total_flos": 0.0,"train_loss": 2.839574353448276,"train_runtime": 8.9764,"train_samples": 16610,"train_samples_per_second": 102.195,"train_steps_per_second": 6.461}
123version https://git-lfs.github.com/spec/v1oid sha256:451c5f9e05ecfee261beb7a55baab3777c57dc8ada048b4636e9d2b55c96c8d2size 7352123version https://git-lfs.github.com/spec/v1oid sha256:687b30bdda8c062f901bc710f949dce7a9b706604d6917216cf1a525db3f22c7size 7352
README.md+2-4
all_results.json+4-4
model.safetensors+1-1
train_results.json+4-4
trainer_state.json
training_args.bin+1-1