Download example.py from Haxxord/TurkishLLM-Generative-V1: direct link, hf CLI and curl.
- Browser
- Download file 532 Bytes
-
https://huggingface.co/Haxxord/TurkishLLM-Generative-V1/resolve/main/example.py
- Command line
-
hf download hf://Haxxord/TurkishLLM-Generative-V1/example.py
-
curl -L -o example.py https://huggingface.co/Haxxord/TurkishLLM-Generative-V1/resolve/main/example.py
532 Bytes
| """ | |
| example.py | |
| Minimal Quickstart Example for TurkishLLM Generative V1. | |
| """ | |
| from inference import TurkishLLMInference | |
| def main(): | |
| # Initialize inference engine using local release assets | |
| engine = TurkishLLMInference() | |
| question = "Türkiye'nin başkenti neresidir?" | |
| print(f"Soru: {question}") | |
| response = engine.generate( | |
| prompt=question, | |
| max_new_tokens=48, | |
| temperature=0.0, | |
| repetition_penalty=1.1 | |
| ) | |
| print(f"Cevap: {response}") | |
| if __name__ == "__main__": | |
| main() | |