{"id":15683660,"url":"https://github.com/ivanbongiorni/shakespeare-gpt","last_synced_at":"2026-04-29T17:39:16.697Z","repository":{"id":181036983,"uuid":"619322517","full_name":"IvanBongiorni/shakespeare-gpt","owner":"IvanBongiorni","description":"How to build a custom GPT for text generation, based on TensorFlow 2.x and Maximal. Trained on the Shakespeare corpus.","archived":false,"fork":false,"pushed_at":"2023-07-13T17:51:43.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T12:28:48.375Z","etag":null,"topics":["deep-learning","deeplearning","generative-ai","gpt","machine-learning","machinlearning","maximal","natural-language-generation","natural-language-processing","nlg","nlp","python","tensorflow","tensorflow2","transformer","transformer-architecture","transformer-models"],"latest_commit_sha":null,"homepage":"https://github.com/IvanBongiorni/maximal","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IvanBongiorni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-26T22:20:07.000Z","updated_at":"2023-11-19T13:37:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"276cae7d-76af-457c-8d1f-83bcf09bfbc2","html_url":"https://github.com/IvanBongiorni/shakespeare-gpt","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"730b17311c290afec815303e9d61564dc4832ab9"},"previous_names":["ivanbongiorni/shakespeare-gpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanBongiorni%2Fshakespeare-gpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanBongiorni%2Fshakespeare-gpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanBongiorni%2Fshakespeare-gpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanBongiorni%2Fshakespeare-gpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IvanBongiorni","download_url":"https://codeload.github.com/IvanBongiorni/shakespeare-gpt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246307932,"owners_count":20756478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","deeplearning","generative-ai","gpt","machine-learning","machinlearning","maximal","natural-language-generation","natural-language-processing","nlg","nlp","python","tensorflow","tensorflow2","transformer","transformer-architecture","transformer-models"],"created_at":"2024-10-03T17:08:06.139Z","updated_at":"2026-04-29T17:39:11.656Z","avatar_url":"https://github.com/IvanBongiorni.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shakespeare GPT\nThis is a tutorial repository to show how easy it is to build a custom GPT model using [Maximal](https://github.com/IvanBongiorni/maximal) and *TensorFlow 2.x* libraries.\n\nFor a more in depth documentation on how to build Transformer neural networks with **Maximal** and TensorFlow, refer to the [Official documentation](https://ivanbongiorni.github.io/maximal/) (Tutorials section).\n\n## How to start\nYou must train a model via: `python train.py`. All hyperparameters can be tweaked in `config.py`.\n#### WARNING: a GPU is strongly suggested to run this code. \n\n## How to generate code\nOnce a model is saved and stored in `/saved_models` folder, you can run: `python chat.py` to load the model and generate text via command line.\n\nIn the first public version of this repository, prompt length must be at least as long as the model's input size (controllable in `config.py`).\nThis is a constraint that will be removed in further versions.\n\nTo end the generation either use `Ctr+C` or type `exit`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanbongiorni%2Fshakespeare-gpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanbongiorni%2Fshakespeare-gpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanbongiorni%2Fshakespeare-gpt/lists"}