lmsys/lmsys-chat-1m
Viewer • Updated • 1M • 7.11k • 971
How to use agentlans/pythia-70m-lmsys-prompts with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="agentlans/pythia-70m-lmsys-prompts") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("agentlans/pythia-70m-lmsys-prompts")
model = AutoModelForCausalLM.from_pretrained("agentlans/pythia-70m-lmsys-prompts", device_map="auto")How to use agentlans/pythia-70m-lmsys-prompts with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "agentlans/pythia-70m-lmsys-prompts"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "agentlans/pythia-70m-lmsys-prompts",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/agentlans/pythia-70m-lmsys-prompts
How to use agentlans/pythia-70m-lmsys-prompts with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "agentlans/pythia-70m-lmsys-prompts" \
--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": "agentlans/pythia-70m-lmsys-prompts",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "agentlans/pythia-70m-lmsys-prompts" \
--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": "agentlans/pythia-70m-lmsys-prompts",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use agentlans/pythia-70m-lmsys-prompts with Docker Model Runner:
docker model run hf.co/agentlans/pythia-70m-lmsys-prompts
This model generates user prompts based on the lmsys/lmsys-chat-1m dataset. Since the original dataset is restricted, this model provides accessible prompt generation derived from it. It is a fine-tuned version of EleutherAI/pythia-70m-deduped.
Evaluation results on the validation set are:
from transformers import pipeline, set_seed
generator = pipeline('text-generation', model='agentlans/pythia-70m-lmsys-prompts', device='cuda')
set_seed(20250906) # For reproducibility
# Generate starting from empty string
results = generator("", max_length=3000, num_return_sequences=5, do_sample=True)
for i, x in enumerate(results, 1):
print(f"**Prompt {i}:**\n\n```\n{x['generated_text']}\n```\n")
Sample output:
Prompt 1:
Which are the number of 10 cars to buy for 20 cars for a 3,000 person in 20 years?
Answer Choices: (A) the best car in the world. (B) The reason why... [truncated for brevity]
Prompt 2:
can you tell me which version is better to serve as a chatgpt manager.
Prompt 3:
write a story using the following NAME_1 game, choose the theme, do a story... [truncated for brevity]
Prompt 4:
You are the text completion model and you must complete the assistant answer below, only send the completion based on the system instructions. Don't repeat your answer sentences.
user: descriptive answer for python how can I import yurt to another language in python?
assistant:
Prompt 5:
write a story with 10 paragraphs describing how a person is reading a book called "NAME_1".
NAME_1 are used and may appear untranslated or unpopulated.The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Accuracy | Validation Loss |
|---|---|---|---|---|
| 3.3254 | 1.0 | 4963 | 0.4213 | 3.2209 |
| 2.9236 | 2.0 | 9926 | 0.4686 | 2.9025 |
| 2.7526 | 3.0 | 14889 | 0.4861 | 2.7927 |
| 2.683 | 4.0 | 19852 | 2.7131 | 0.4999 |
| 2.6099 | 5.0 | 24815 | 2.6662 | 0.5068 |
Base model
EleutherAI/pythia-70m-deduped