| language: en | |
| license: apache-2.0 | |
| tags: | |
| - llm | |
| - gpt | |
| - create-llm | |
| - pytorch | |
| # john2 | |
| This model was trained using [create-llm](https://github.com/theaniketgiri/create-llm). | |
| ## Model Description | |
| A language model trained with create-llm framework. | |
| ## Usage | |
| ```python | |
| import torch | |
| from transformers import AutoTokenizer | |
| # Load model | |
| model = torch.load('pytorch_model.bin') | |
| model.eval() | |
| # Load tokenizer (if available) | |
| try: | |
| tokenizer = AutoTokenizer.from_pretrained("SebNutt/john2") | |
| except: | |
| print("Tokenizer not available") | |
| # Generate text | |
| # Add your generation code here | |
| ``` | |
| ## Training Details | |
| - **Framework:** PyTorch | |
| - **Tool:** create-llm | |
| - **Deployment:** Hugging Face Hub | |
| ## Citation | |
| ```bibtex | |
| @misc{SebNutt-john2, | |
| author = {Your Name}, | |
| title = {john2}, | |
| year = {2024}, | |
| publisher = {Hugging Face}, | |
| howpublished = {\url{https://huggingface.co/SebNutt/john2}} | |
| } | |
| ``` | |