Text Generation
Transformers
PyTorch
TensorBoard
gpt2
Generated from Trainer
text-generation-inference
Instructions to use pnadel/latin_causal with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pnadel/latin_causal with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pnadel/latin_causal")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pnadel/latin_causal") model = AutoModelForCausalLM.from_pretrained("pnadel/latin_causal", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pnadel/latin_causal with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pnadel/latin_causal" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pnadel/latin_causal", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pnadel/latin_causal
- SGLang
How to use pnadel/latin_causal 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 "pnadel/latin_causal" \ --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": "pnadel/latin_causal", "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 "pnadel/latin_causal" \ --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": "pnadel/latin_causal", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pnadel/latin_causal with Docker Model Runner:
docker model run hf.co/pnadel/latin_causal
Commit History
-
update model card README.md
37b458f -
End of training
bb08b77 -
update model card README.md
cdb050e -
End of training
54dbb6e -
update model card README.md
302030a -
End of training
91b6111 -
update model card README.md
51b9faf -
End of training
4966f09 -
update model card README.md
64dcdb1 -
End of training
896aa9d -
update model card README.md
1beddeb -
End of training
7ebb472
-
update model card README.md
85a31fb -
End of training
b1f16da -
update model card README.md
acf2c18 -
End of training
d75d3ef -
update model card README.md
2502a51 -
End of training
d39ff1d -
update model card README.md
576c4b7 -
End of training
3a08788 -
update model card README.md
7a9ea0a -
End of training
5c6e6d1 -
update model card README.md
89df04e -
End of training
75a725f -
update model card README.md
6a57575 -
End of training
f5ae31b -
initial commit
c55bb95