End of training
Browse files- README.md +36 -94
- generation_config.json +1 -1
README.md
CHANGED
|
@@ -1,115 +1,57 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
license: mit
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
- ajibawa-2023/SlimOrca-ShareGPT
|
| 11 |
-
- junelee/wizard_vicuna_70k
|
| 12 |
-
- meta-math/MetaMathQA
|
| 13 |
-
- HuggingFaceH4/MATH-500
|
| 14 |
-
- hkust-nlp/dart-math-pool-math
|
| 15 |
-
- TIGER-Lab/MathInstruct
|
| 16 |
-
language:
|
| 17 |
-
- en
|
| 18 |
-
pipeline_tag: text-generation
|
| 19 |
---
|
| 20 |
|
| 21 |
-
|
|
|
|
| 22 |
|
| 23 |
-
|
| 24 |
|
| 25 |
-
|
| 26 |
|
| 27 |
-
|
| 28 |
-
- **Parameters**: 500M
|
| 29 |
-
- **Context Length**: 128 tokens
|
| 30 |
-
- **Pretraining Duration**: \~35 hours on NVIDIA T4 GPU
|
| 31 |
-
- **Fine-tuning Duration**: \~15 hours on conversational datasets
|
| 32 |
-
- **Training Loss**: 1.2–1.9 (with room to improve!)
|
| 33 |
-
- **Library**: Transformers (Hugging Face)
|
| 34 |
-
- **License**: MIT
|
| 35 |
|
| 36 |
-
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
-
|
| 41 |
-
- **Salesforce/wikitext**: Wikipedia-based text for general knowledge and coherence.
|
| 42 |
-
- **abhinand/alpaca-gpt4-sharegpt**: Instruction-based conversational data for task-oriented responses.
|
| 43 |
-
- **shibing624/sharegpt_gpt4**: High-quality conversational data for chat-like interactions.
|
| 44 |
-
- **ChristophSchuhmann/basic-math-problems-with-step-by-step-solutions**: Math problems with solutions to boost logical reasoning.
|
| 45 |
|
| 46 |
-
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
-
|
| 51 |
|
| 52 |
-
|
| 53 |
-
- **Code Generation**: Produce functional code snippets for various programming tasks.
|
| 54 |
-
- **Conversational AI**: Power chatbots or assistants with natural dialogue.
|
| 55 |
-
- **Educational Tools**: Assist with math problem-solving or explain concepts step-by-step.
|
| 56 |
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
-
|
| 60 |
|
| 61 |
-
To use Arsh-llm, you can load it directly from Hugging Face:
|
| 62 |
|
| 63 |
-
```python
|
| 64 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 65 |
|
| 66 |
-
|
| 67 |
-
model = AutoModelForCausalLM.from_pretrained("arshiaafshani/Arsh-llm")
|
| 68 |
-
tokenizer = AutoTokenizer.from_pretrained("arshiaafshani/Arsh-llm")
|
| 69 |
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
outputs = model.generate(**inputs, max_length=200)
|
| 75 |
-
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 76 |
-
```
|
| 77 |
-
|
| 78 |
-
## Training Details
|
| 79 |
-
|
| 80 |
-
- **Pretraining**: Conducted on a T4 GPU for \~35 hours using a mix of TinyStories, WikiText, and other datasets to build a strong foundation in text and story generation.
|
| 81 |
-
- **Fine-tuning**: 15 hours on ShareGPT-based conversational data with a structured chat template to enhance dialogue capabilities.
|
| 82 |
-
- **Hardware**: NVIDIA T4 GPU (15GB VRAM).
|
| 83 |
-
- **Training Loss**: Achieved 1.2–1.9, indicating solid performance with significant potential for improvement through extended training.
|
| 84 |
-
|
| 85 |
-
## Limitations
|
| 86 |
-
|
| 87 |
-
- **Current Stage**: Arsh-llm is not yet fully optimized. It performs well for its size but requires additional training to compete with larger models.
|
| 88 |
-
- **Dataset Size**: Pretrained on relatively small datasets, which limits its generalization. Scaling up to larger datasets will unlock its full potential.
|
| 89 |
-
- **Context Length**: Limited to 128 tokens, which may constrain performance on longer sequences.
|
| 90 |
-
- **Not Production-Ready**: This model is best used as a base for further fine-tuning rather than as a standalone solution.
|
| 91 |
-
|
| 92 |
-
## Future Plans
|
| 93 |
-
|
| 94 |
-
The journey doesn’t end here! Arsh-llm is set to evolve with:
|
| 95 |
-
|
| 96 |
-
- **Extended Pretraining**: Leveraging larger datasets for broader knowledge and better generalization.
|
| 97 |
-
- **Conversational Fine-tuning**: Enhancing dialogue capabilities with advanced post-training techniques.
|
| 98 |
-
- **Benchmarking**: Evaluating performance against similar models (e.g., TinyLlama, Phi-1.5) on tasks like MMLU, HumanEval, and GSM8K.
|
| 99 |
-
- **Community Feedback**: Incorporating user insights to refine and improve the model.
|
| 100 |
-
|
| 101 |
-
Stay tuned—Arsh-llm is on its way to becoming a legend! 🔥
|
| 102 |
-
|
| 103 |
-
## License
|
| 104 |
-
|
| 105 |
-
This model is licensed under the MIT License, allowing for flexible use in both research and commercial applications. Feel free to build upon, modify, or share it!
|
| 106 |
-
|
| 107 |
-
## Acknowledgments
|
| 108 |
-
|
| 109 |
-
- Built with ❤️ by Arshia Afshani.
|
| 110 |
-
- Powered by the Hugging Face Transformers library.
|
| 111 |
-
- Thanks to the open-source community for providing the amazing datasets that made this model possible.
|
| 112 |
-
|
| 113 |
-
---
|
| 114 |
-
|
| 115 |
-
**Ready to take Arsh-llm for a spin?** Clone it, train it, and let’s make it a superstar together! 🌟 For questions, feedback, or collabs, reach out via Hugging Face or open an issue in the repo.
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
license: mit
|
| 4 |
+
base_model: arshiaafshani/Arsh-llm
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
model-index:
|
| 8 |
+
- name: Arsh-llm
|
| 9 |
+
results: []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
|
| 15 |
+
# Arsh-llm
|
| 16 |
|
| 17 |
+
This model is a fine-tuned version of [arshiaafshani/Arsh-llm](https://huggingface.co/arshiaafshani/Arsh-llm) on an unknown dataset.
|
| 18 |
|
| 19 |
+
## Model description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
+
More information needed
|
| 22 |
|
| 23 |
+
## Intended uses & limitations
|
| 24 |
|
| 25 |
+
More information needed
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
+
## Training and evaluation data
|
| 28 |
|
| 29 |
+
More information needed
|
| 30 |
|
| 31 |
+
## Training procedure
|
| 32 |
|
| 33 |
+
### Training hyperparameters
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
The following hyperparameters were used during training:
|
| 36 |
+
- learning_rate: 3e-05
|
| 37 |
+
- train_batch_size: 4
|
| 38 |
+
- eval_batch_size: 8
|
| 39 |
+
- seed: 42
|
| 40 |
+
- gradient_accumulation_steps: 12
|
| 41 |
+
- total_train_batch_size: 48
|
| 42 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 43 |
+
- lr_scheduler_type: linear
|
| 44 |
+
- lr_scheduler_warmup_steps: 2000
|
| 45 |
+
- training_steps: 500
|
| 46 |
+
- mixed_precision_training: Native AMP
|
| 47 |
|
| 48 |
+
### Training results
|
| 49 |
|
|
|
|
| 50 |
|
|
|
|
|
|
|
| 51 |
|
| 52 |
+
### Framework versions
|
|
|
|
|
|
|
| 53 |
|
| 54 |
+
- Transformers 4.52.4
|
| 55 |
+
- Pytorch 2.6.0+cu124
|
| 56 |
+
- Datasets 3.6.0
|
| 57 |
+
- Tokenizers 0.21.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
generation_config.json
CHANGED
|
@@ -3,5 +3,5 @@
|
|
| 3 |
"bos_token_id": 0,
|
| 4 |
"eos_token_id": 2,
|
| 5 |
"pad_token_id": 1,
|
| 6 |
-
"transformers_version": "4.52.
|
| 7 |
}
|
|
|
|
| 3 |
"bos_token_id": 0,
|
| 4 |
"eos_token_id": 2,
|
| 5 |
"pad_token_id": 1,
|
| 6 |
+
"transformers_version": "4.52.4"
|
| 7 |
}
|