Instructions to use PygmalionAI/pygmalion-6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PygmalionAI/pygmalion-6b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PygmalionAI/pygmalion-6b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("PygmalionAI/pygmalion-6b") model = AutoModelForCausalLM.from_pretrained("PygmalionAI/pygmalion-6b") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use PygmalionAI/pygmalion-6b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PygmalionAI/pygmalion-6b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PygmalionAI/pygmalion-6b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/PygmalionAI/pygmalion-6b
- SGLang
How to use PygmalionAI/pygmalion-6b 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-6b" \ --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": "PygmalionAI/pygmalion-6b", "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 "PygmalionAI/pygmalion-6b" \ --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": "PygmalionAI/pygmalion-6b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use PygmalionAI/pygmalion-6b with Docker Model Runner:
docker model run hf.co/PygmalionAI/pygmalion-6b
Adding Evaluation Results
#49 opened 9 months ago
by
SadP0i
Add default chat template to tokenizer_config.json
#47 opened over 2 years ago
by
Xenova
Adding Evaluation Results
#45 opened over 2 years ago
by
leaderboard-pr-bot
Models name
1
#44 opened over 2 years ago
by
aiCreatorJanst
Prompt format
#43 opened over 2 years ago
by
JulesBelveze
Adding `safetensors` variant of this model
#42 opened over 2 years ago
by
JulesBelveze
Update README.md
#41 opened almost 3 years ago
by
FyodorsUshanka
Can character be a male?
2
#40 opened almost 3 years ago
by
DayiTokat
Multi language support
#39 opened almost 3 years ago
by
akashgoel-id
Issue With Installation
#38 opened almost 3 years ago
by
Ender010
How should we be using the <BOT> placeholder in the generated responses?
π 2
1
#37 opened almost 3 years ago
by
sammyjava
How to train model ?
#33 opened about 3 years ago
by
tam801
The Dataset
9
#32 opened about 3 years ago
by
bibiicekill
How much ram it needs?
8
#31 opened about 3 years ago
by
Turbina99
Truncated or empty text response?
1
#30 opened about 3 years ago
by
miloice2022
How to
1
#29 opened about 3 years ago
by
Samik-Pandit
How do you use it since the one on collab doesn't work anymore?
#27 opened about 3 years ago
by
it2ly
how can i set stop_sequence in generate method?
3
#25 opened about 3 years ago
by
jini1114
Model with only API
6
#24 opened about 3 years ago
by
octopusta
Raven (RKWV) as a potential LLM for Pygmalion to use.
π€π 2
1
#23 opened about 3 years ago
by
Joseph717171
It should be a good choice to use bloom or bloomz to train the new pygmalion model?
4
#20 opened about 3 years ago
by
win10
Doubts?
1
#18 opened about 3 years ago
by
Monkyunmin
Would it be more powerful if it could have instant search and long-term memory capabilities like Blenderbot 2.0?
4
#17 opened about 3 years ago
by
win10
Is there any plan for a Pygmalion model based on OPT
π 3
4
#11 opened about 3 years ago
by
Conanak99
Amazing Results, Please don't accidently ruin them.
π 8
3
#7 opened over 3 years ago
by
Delcos
The bot can't differentiate between commenting the situation or talking to the bot
6
#4 opened over 3 years ago
by
Szarka
Logbook Location = https://github.com/PygmalionAI/logbooks
π 1
1
#2 opened over 3 years ago
by
Henk717