Text Generation
Transformers
PyTorch
TensorBoard
gpt2
Generated from Trainer
text-generation-inference
Instructions to use that1guy15/That1Guy15_eli5_clm-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use that1guy15/That1Guy15_eli5_clm-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="that1guy15/That1Guy15_eli5_clm-model")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("that1guy15/That1Guy15_eli5_clm-model") model = AutoModelForCausalLM.from_pretrained("that1guy15/That1Guy15_eli5_clm-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use that1guy15/That1Guy15_eli5_clm-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "that1guy15/That1Guy15_eli5_clm-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "that1guy15/That1Guy15_eli5_clm-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/that1guy15/That1Guy15_eli5_clm-model
- SGLang
How to use that1guy15/That1Guy15_eli5_clm-model 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 "that1guy15/That1Guy15_eli5_clm-model" \ --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": "that1guy15/That1Guy15_eli5_clm-model", "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 "that1guy15/That1Guy15_eli5_clm-model" \ --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": "that1guy15/That1Guy15_eli5_clm-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use that1guy15/That1Guy15_eli5_clm-model with Docker Model Runner:
docker model run hf.co/that1guy15/That1Guy15_eli5_clm-model
Commit ·
a84b43f
1
Parent(s): 2cd6782
End of training
Browse files
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 50256,
|
| 4 |
+
"eos_token_id": 50256,
|
| 5 |
+
"transformers_version": "4.28.0"
|
| 6 |
+
}
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 333970169
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:daa65c45205d11b811aaf7a5bccb269d764ed275b9f5af2519f71eb9d2387361
|
| 3 |
size 333970169
|
runs/May17_20-16-11_cdf436f595a2/events.out.tfevents.1684354691.cdf436f595a2.344.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c17618ba6961951b04b9919e475357bb18e5701a3ee068890e0921cc4712df1
|
| 3 |
+
size 6465
|
runs/May17_20-16-11_cdf436f595a2/events.out.tfevents.1684356364.cdf436f595a2.344.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd1e67c071094d4a79c99d6fe70b33223a87ff39d5ae1be2d049070647e8de14
|
| 3 |
+
size 359
|