Text Generation
Transformers
PyTorch
Safetensors
English
llama
text generation
instruct
text-generation-inference
Instructions to use PygmalionAI/pygmalion-2-13b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PygmalionAI/pygmalion-2-13b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PygmalionAI/pygmalion-2-13b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("PygmalionAI/pygmalion-2-13b") model = AutoModelForCausalLM.from_pretrained("PygmalionAI/pygmalion-2-13b") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use PygmalionAI/pygmalion-2-13b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PygmalionAI/pygmalion-2-13b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PygmalionAI/pygmalion-2-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/PygmalionAI/pygmalion-2-13b
- SGLang
How to use PygmalionAI/pygmalion-2-13b 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 "PygmalionAI/pygmalion-2-13b" \ --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": "PygmalionAI/pygmalion-2-13b", "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 "PygmalionAI/pygmalion-2-13b" \ --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": "PygmalionAI/pygmalion-2-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use PygmalionAI/pygmalion-2-13b with Docker Model Runner:
docker model run hf.co/PygmalionAI/pygmalion-2-13b
Commit ·
d3cb5ca
1
Parent(s): 3d5a82f
Add acknowledgements
Browse files
README.md
CHANGED
|
@@ -61,3 +61,6 @@ datasets, and datasets acquired from various RP forums.
|
|
| 61 |
The intended use-case for this model is fictional writing for entertainment purposes. Any other sort of usage is out of scope.
|
| 62 |
|
| 63 |
As such, it was **not** fine-tuned to be safe and harmless: the base model _and_ this fine-tune have been trained on data known to contain profanity and texts that are lewd or otherwise offensive. It may produce socially unacceptable or undesirable text, even if the prompt itself does not include anything explicitly offensive. Outputs might often be factually wrong or misleading.
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
The intended use-case for this model is fictional writing for entertainment purposes. Any other sort of usage is out of scope.
|
| 62 |
|
| 63 |
As such, it was **not** fine-tuned to be safe and harmless: the base model _and_ this fine-tune have been trained on data known to contain profanity and texts that are lewd or otherwise offensive. It may produce socially unacceptable or undesirable text, even if the prompt itself does not include anything explicitly offensive. Outputs might often be factually wrong or misleading.
|
| 64 |
+
|
| 65 |
+
## Acknowledgements
|
| 66 |
+
We would like to thank [SpicyChat](https://spicychat.ai/) for sponsoring the training for this model.
|