Instructions to use cenkersisman/gpt2-turkish-50m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cenkersisman/gpt2-turkish-50m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cenkersisman/gpt2-turkish-50m")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cenkersisman/gpt2-turkish-50m") model = AutoModelForCausalLM.from_pretrained("cenkersisman/gpt2-turkish-50m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cenkersisman/gpt2-turkish-50m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cenkersisman/gpt2-turkish-50m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cenkersisman/gpt2-turkish-50m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cenkersisman/gpt2-turkish-50m
- SGLang
How to use cenkersisman/gpt2-turkish-50m 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 "cenkersisman/gpt2-turkish-50m" \ --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": "cenkersisman/gpt2-turkish-50m", "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 "cenkersisman/gpt2-turkish-50m" \ --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": "cenkersisman/gpt2-turkish-50m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cenkersisman/gpt2-turkish-50m with Docker Model Runner:
docker model run hf.co/cenkersisman/gpt2-turkish-50m
🚩 Report: Copyright infringement
Infringement of copyright of Gorkem Goknar TurkishGPTmodel.Commitment date s can be compared .Citation is needed.Thıs person uses Görkem Göknar's base models as if he owns and irequires citation.
Hi @cenkersisman
Would you mind chiming in here?
@ozgengoknar Thank you for reporting, if you are not able to come to a resolution here, could you please forward us a DMCA takedown notice so we can help you move this along?
Hi @ozgengoknar and @no-mad ,
I sincerely apologize for the late reply; I just saw this notification today.
There is a clear misunderstanding here. I did not use Görkem Göknar's model as a base for this project. As you can clearly see in the config.json file of my repository, the _name_or_path is "output_model_dir\checkpoint-600000". This reflects my own independent, local training process from scratch.
The similarities are simply due to both of us training standard GPT-2 models for the Turkish language. Therefore, no copyright infringement has occurred.
I hope this clarifies the situation. Please let me know if you need any further technical details.
Thanks a million for clarifying 🙏
Closing this report as we did not receive a valid takedown notice