Text Generation
Transformers
PyTorch
English
llama
text generation
conversational
text-generation-inference
Instructions to use TehVenom/Pygmalion-13b-Merged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TehVenom/Pygmalion-13b-Merged with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TehVenom/Pygmalion-13b-Merged")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TehVenom/Pygmalion-13b-Merged") model = AutoModelForCausalLM.from_pretrained("TehVenom/Pygmalion-13b-Merged", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TehVenom/Pygmalion-13b-Merged with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TehVenom/Pygmalion-13b-Merged" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TehVenom/Pygmalion-13b-Merged", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TehVenom/Pygmalion-13b-Merged
- SGLang
How to use TehVenom/Pygmalion-13b-Merged 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 "TehVenom/Pygmalion-13b-Merged" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TehVenom/Pygmalion-13b-Merged", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "TehVenom/Pygmalion-13b-Merged" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TehVenom/Pygmalion-13b-Merged", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use TehVenom/Pygmalion-13b-Merged with Docker Model Runner:
docker model run hf.co/TehVenom/Pygmalion-13b-Merged
Commit History
-
Add default chat template to tokenizer_config.json
Verified signature[Automated] This PR adds the default chat template to the tokenizer config, allowing the model to be used with the new conversational widget (see [PR](https://github.com/huggingface/huggingface.js/pull/457)). If the default is not appropriate for your model, please set `tokenizer.chat_template` to an appropriate template. See https://huggingface.co/docs/transformers/main/chat_templating for more information.f0598dd
-
Update README.md
f963080
-
Update README.md
1d1afc6 -
Update README.md
7b8f4a9 -
Update README.md
30ad687 -
Update README.md
7895364 -
Update README.md
d46c529 -
Update README.md
e9d9832
-
Update README.md
e998856 -
Upload pytorch_model-00002-of-00003.bin with huggingface_hub
415f237 -
Upload pytorch_model-00001-of-00003.bin with huggingface_hub
3f522bc -
Upload pytorch_model-00003-of-00003.bin with huggingface_hub
67507a8 -
Upload pytorch_model.bin.index.json with huggingface_hub
22e2525 -
Upload pytorch_model-00001-of-00003.bin with huggingface_hub
470ddbf -
Upload pytorch_model-00003-of-00003.bin with huggingface_hub
b233599 -
Upload pytorch_model.bin.index.json with huggingface_hub
4a422bd -
Upload pytorch_model-00003-of-00003.bin with huggingface_hub
a767eb3 -
Upload pytorch_model.bin.index.json with huggingface_hub
5319651 -
Upload pytorch_model.bin.index.json with huggingface_hub
578398f -
Upload pytorch_model.bin.index.json with huggingface_hub
292fde9 -
Upload 6 files
a9ad996 -
Create README.md
61def23 -
initial commit
18c4ec5