Instructions to use VariableZee/DialoGPT-small-ivylia03 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VariableZee/DialoGPT-small-ivylia03 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="VariableZee/DialoGPT-small-ivylia03") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("VariableZee/DialoGPT-small-ivylia03") model = AutoModelForCausalLM.from_pretrained("VariableZee/DialoGPT-small-ivylia03") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use VariableZee/DialoGPT-small-ivylia03 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "VariableZee/DialoGPT-small-ivylia03" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VariableZee/DialoGPT-small-ivylia03", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/VariableZee/DialoGPT-small-ivylia03
- SGLang
How to use VariableZee/DialoGPT-small-ivylia03 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 "VariableZee/DialoGPT-small-ivylia03" \ --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": "VariableZee/DialoGPT-small-ivylia03", "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 "VariableZee/DialoGPT-small-ivylia03" \ --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": "VariableZee/DialoGPT-small-ivylia03", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use VariableZee/DialoGPT-small-ivylia03 with Docker Model Runner:
docker model run hf.co/VariableZee/DialoGPT-small-ivylia03
Commit ·
508a48f
1
Parent(s): 5a032d8
Update model
Browse files- config.json +2 -3
- eval_results.txt +1 -1
- pytorch_model.bin +1 -1
- tokenizer_config.json +1 -1
config.json
CHANGED
|
@@ -8,6 +8,7 @@
|
|
| 8 |
"bos_token_id": 50256,
|
| 9 |
"embd_pdrop": 0.1,
|
| 10 |
"eos_token_id": 50256,
|
|
|
|
| 11 |
"initializer_range": 0.02,
|
| 12 |
"layer_norm_epsilon": 1e-05,
|
| 13 |
"model_type": "gpt2",
|
|
@@ -18,7 +19,6 @@
|
|
| 18 |
"n_layer": 12,
|
| 19 |
"n_positions": 1024,
|
| 20 |
"resid_pdrop": 0.1,
|
| 21 |
-
"scale_attn_weights": true,
|
| 22 |
"summary_activation": null,
|
| 23 |
"summary_first_dropout": 0.1,
|
| 24 |
"summary_proj_to_labels": true,
|
|
@@ -29,8 +29,7 @@
|
|
| 29 |
"max_length": 1000
|
| 30 |
}
|
| 31 |
},
|
| 32 |
-
"
|
| 33 |
-
"transformers_version": "4.11.3",
|
| 34 |
"use_cache": true,
|
| 35 |
"vocab_size": 50257
|
| 36 |
}
|
|
|
|
| 8 |
"bos_token_id": 50256,
|
| 9 |
"embd_pdrop": 0.1,
|
| 10 |
"eos_token_id": 50256,
|
| 11 |
+
"gradient_checkpointing": false,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
"layer_norm_epsilon": 1e-05,
|
| 14 |
"model_type": "gpt2",
|
|
|
|
| 19 |
"n_layer": 12,
|
| 20 |
"n_positions": 1024,
|
| 21 |
"resid_pdrop": 0.1,
|
|
|
|
| 22 |
"summary_activation": null,
|
| 23 |
"summary_first_dropout": 0.1,
|
| 24 |
"summary_proj_to_labels": true,
|
|
|
|
| 29 |
"max_length": 1000
|
| 30 |
}
|
| 31 |
},
|
| 32 |
+
"transformers_version": "4.5.1",
|
|
|
|
| 33 |
"use_cache": true,
|
| 34 |
"vocab_size": 50257
|
| 35 |
}
|
eval_results.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
perplexity = tensor(
|
|
|
|
| 1 |
+
perplexity = tensor(29.3612)
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 510403817
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3351b33568e477ce26c7510c209d50751cf248d2ac53d6de9294afe52b637fd5
|
| 3 |
size 510403817
|
tokenizer_config.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"unk_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "bos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "add_prefix_space": false, "model_max_length": 1024, "special_tokens_map_file": null, "name_or_path": "microsoft/DialoGPT-small", "errors": "replace"
|
|
|
|
| 1 |
+
{"unk_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "bos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "add_prefix_space": false, "model_max_length": 1024, "special_tokens_map_file": null, "name_or_path": "microsoft/DialoGPT-small", "errors": "replace"}
|