# GPT-2 Model Trained on Serbian Corpus ![serbia-state.png](https://cdn-uploads.huggingface.co/production/uploads/64fc6ba4e0dc35986bc3b6ee/NVA8gBkmZTKKo-ekQILI6.png) By sharing this model, we aim to foster further research and applications in Serbian language processing. ### Introduction: This GPT-2 model has been fine-tuned on an extensive Serbian corpus, boasting a richness of 43 million tokens. It is designed to generate high-quality text in Serbian, capturing the nuances and intricacies of the language. ### Dataset Details: Size: 43 million tokens. Nature: The dataset encompasses a diverse range of topics, representing various aspects of the Serbian language and culture. ### Model Usage: This model can be utilized for various NLP tasks such as text generation, summarization, translation, and more. Due to its comprehensive training on a vast corpus, it promises accurate and contextually relevant outputs, especially for tasks related to the Serbian language. Loading the Model: from cryptography.fernet import Fernet import torch key = input("Enter the decryption key: ").encode() cipher_suite = Fernet(key) model_path = 'your/path/to/model/pytorch_model.bin' try: with open(model_path, 'rb') as file: encrypted_data = file.read() decrypted_data = cipher_suite.decrypt(encrypted_data) with open(model_path, 'wb') as file: file.write(decrypted_data) # Dodajte poziv za učitavanje modela loaded_model = torch.load(model_path) except: print("You can decrypt the model by contacting the author of this model who will add the key, email: info@edukom.rs") # Sada možete koristiti 'loaded_model' za dalje operacije... ### Licensing: The model is protected by encryption and its use requires a decryption key. Please check the licensing terms if you intend to use the model for commercial purposes. For any questions or if you need decryption keys, feel free to contact us at info@edukom.rs ![Screenshot.png](https://cdn-uploads.huggingface.co/production/uploads/64fc6ba4e0dc35986bc3b6ee/UoIvwAez4ZoiEsHyx-vn6.png)