YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Perfect β thatβs Hugging Faceβs autogenerated model card template.
You can replace that entire content with the cleaner, more personalized README.md I provided earlier. Itβll make your model page much easier to understand and more shareable.
β Steps to update the README:
Select all the current content in the editor (Cmd+A or Ctrl+A) and delete it.
Paste this full content below into the empty field:
π Click to expand the full README
---
license: apache-2.0
tags:
- gpt-neox
- causal-lm
- lora
- fine-tuned
- text-generation
- huggingface
model-index:
- name: finetune-DO
results: []
---
# π Fine-tuned GPT-NeoX-20B on English Quotes
This model is a fine-tuned version of [EleutherAI/gpt-neox-20b](https://huggingface.co/EleutherAI/gpt-neox-20b) using LoRA (Low-Rank Adaptation) on a quotes dataset from [Abirate/english_quotes](https://huggingface.co/datasets/Abirate/english_quotes).
Fine-tuning was performed by [@Dwayne234](https://huggingface.co/Dwayne234) using Hugging Face π€ and Google Colab with 4-bit quantization enabled (BitsAndBytes).
---
## π§ Model Details
- **Base Model**: GPT-NeoX-20B
- **Adapter Type**: LoRA
- **Quantization**: 4-bit (NF4, bfloat16 compute)
- **Training Steps**: 10
- **Frameworks**: π€ Transformers, PEFT, BitsAndBytes
---
## π¦ How to Use
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Dwayne234/finetune-DO")
tokenizer = AutoTokenizer.from_pretrained("Dwayne234/finetune-DO")
prompt = "Ask not what your country"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=20)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
π Dataset
- Name: Abirate/english_quotes
- Type: Text (short English quotes)
π§ Training Hyperparameters
| Setting | Value |
|---|---|
per_device_train_batch_size |
1 |
gradient_accumulation_steps |
4 |
max_steps |
10 |
learning_rate |
2e-4 |
fp16 |
True |
optimizer |
paged_adamw_8bit |
π₯ Citation
If you use this model, please consider citing the base model authors and giving a β to @Dwayne234!
β¨ License
Apache 2.0
</details>
3. Add a commit message like `Update model card with full README`.
4. Hit **Commit changes**.
---
Once saved, refresh your model page β it'll now look clean and informative.
Want me to add a badge or preview your model card before publishing?
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support