Instructions to use nikokons/gpt2-greek with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nikokons/gpt2-greek with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nikokons/gpt2-greek")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("nikokons/gpt2-greek") model = AutoModelForMultimodalLM.from_pretrained("nikokons/gpt2-greek") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nikokons/gpt2-greek with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nikokons/gpt2-greek" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nikokons/gpt2-greek", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nikokons/gpt2-greek
- SGLang
How to use nikokons/gpt2-greek with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "nikokons/gpt2-greek" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nikokons/gpt2-greek", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "nikokons/gpt2-greek" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nikokons/gpt2-greek", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nikokons/gpt2-greek with Docker Model Runner:
docker model run hf.co/nikokons/gpt2-greek
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
| 1 |
---
|
| 2 |
language: el
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
## gpt2-greek
|
|
@@ -16,5 +22,4 @@ It is trained from scratch a generative Transformer model as GPT-2 on a large co
|
|
| 16 |
- Bakagianni, J.; Pouli, K.; Gavriilidou, M.; Pavlopoulos, J. (2025). Towards Systematic Monolingual NLP Surveys: GenA of Greek NLP. arXiv:2407.09861v3 [cs.CL], 31 Jan 2025.
|
| 17 |
- GKOLFOPOULOS, G.; VARLAMIS, I. Developing a news classifier for greek using bert. In: 2022 7th South-East Europe Design Automation, Computer Engineering, Computer Networks and Social Media Conference (SEEDA-CECNSM). IEEE, 2022. p. 1-6.
|
| 18 |
- Alexandridis, G.; Varlamis, I.; Korovesis, K.; Caridakis, G.; Tsantilas, P. (2021). A Survey on Sentiment Analysis and Opinion Mining in Greek Social Media. Information, 12(8), 331. https://doi.org/10.3390/info12080331
|
| 19 |
-
- Aivatoglou, Georgios. (2022). Aspect-Based Sentiment Analysis in Greek Data. MSc Thesis, Aristotle University of Thessaloniki, Faculty of Sciences, School of Informatics, Intelligence Systems Lab. March 2022.
|
| 20 |
-
|
|
|
|
| 1 |
---
|
| 2 |
language: el
|
| 3 |
+
license: mit
|
| 4 |
+
base_model:
|
| 5 |
+
- openai-community/gpt2
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- text-generation-inference
|
| 9 |
---
|
| 10 |
|
| 11 |
## gpt2-greek
|
|
|
|
| 22 |
- Bakagianni, J.; Pouli, K.; Gavriilidou, M.; Pavlopoulos, J. (2025). Towards Systematic Monolingual NLP Surveys: GenA of Greek NLP. arXiv:2407.09861v3 [cs.CL], 31 Jan 2025.
|
| 23 |
- GKOLFOPOULOS, G.; VARLAMIS, I. Developing a news classifier for greek using bert. In: 2022 7th South-East Europe Design Automation, Computer Engineering, Computer Networks and Social Media Conference (SEEDA-CECNSM). IEEE, 2022. p. 1-6.
|
| 24 |
- Alexandridis, G.; Varlamis, I.; Korovesis, K.; Caridakis, G.; Tsantilas, P. (2021). A Survey on Sentiment Analysis and Opinion Mining in Greek Social Media. Information, 12(8), 331. https://doi.org/10.3390/info12080331
|
| 25 |
+
- Aivatoglou, Georgios. (2022). Aspect-Based Sentiment Analysis in Greek Data. MSc Thesis, Aristotle University of Thessaloniki, Faculty of Sciences, School of Informatics, Intelligence Systems Lab. March 2022.
|
|
|