Text Generation
Transformers
PyTorch
Russian
gpt2
Putin, speeches, Russian, politics, war
text-generation-inference
Instructions to use malalejandra/putinspeaks with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use malalejandra/putinspeaks with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="malalejandra/putinspeaks")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("malalejandra/putinspeaks") model = AutoModelForCausalLM.from_pretrained("malalejandra/putinspeaks", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use malalejandra/putinspeaks with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "malalejandra/putinspeaks" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "malalejandra/putinspeaks", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/malalejandra/putinspeaks
- SGLang
How to use malalejandra/putinspeaks 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 "malalejandra/putinspeaks" \ --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": "malalejandra/putinspeaks", "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 "malalejandra/putinspeaks" \ --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": "malalejandra/putinspeaks", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use malalejandra/putinspeaks with Docker Model Runner:
docker model run hf.co/malalejandra/putinspeaks
Download encoder.model from malalejandra/putinspeaks: direct link, hf CLI and curl.
- Browser
- Download file 725 kB
-
https://huggingface.co/malalejandra/putinspeaks/resolve/main/encoder.model
- Command line
-
hf download hf://malalejandra/putinspeaks/encoder.model
-
curl -L -o encoder.model https://huggingface.co/malalejandra/putinspeaks/resolve/main/encoder.model
725 kB
- Xet hash:
- 44962c28809e2b9b8ad84b775d9243c418c540b973cbc449a4402b5f84ef0d8a
- Size of remote file:
- 725 kB
- SHA256:
- 54e9770a67a24eeb072c02b0ed05c96d385af811208e9b3b5b7958069136508f
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.