Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use SeanKuehl/Sean_Text_Generation_Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SeanKuehl/Sean_Text_Generation_Model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SeanKuehl/Sean_Text_Generation_Model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SeanKuehl/Sean_Text_Generation_Model") model = AutoModelForCausalLM.from_pretrained("SeanKuehl/Sean_Text_Generation_Model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SeanKuehl/Sean_Text_Generation_Model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SeanKuehl/Sean_Text_Generation_Model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SeanKuehl/Sean_Text_Generation_Model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SeanKuehl/Sean_Text_Generation_Model
- SGLang
How to use SeanKuehl/Sean_Text_Generation_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 "SeanKuehl/Sean_Text_Generation_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": "SeanKuehl/Sean_Text_Generation_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 "SeanKuehl/Sean_Text_Generation_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": "SeanKuehl/Sean_Text_Generation_Model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SeanKuehl/Sean_Text_Generation_Model with Docker Model Runner:
docker model run hf.co/SeanKuehl/Sean_Text_Generation_Model
Training in progress, step 180
Browse files
config.json
CHANGED
|
@@ -40,7 +40,7 @@
|
|
| 40 |
}
|
| 41 |
},
|
| 42 |
"torch_dtype": "float32",
|
| 43 |
-
"transformers_version": "4.
|
| 44 |
"use_cache": true,
|
| 45 |
"vocab_size": 50257
|
| 46 |
}
|
|
|
|
| 40 |
}
|
| 41 |
},
|
| 42 |
"torch_dtype": "float32",
|
| 43 |
+
"transformers_version": "4.42.4",
|
| 44 |
"use_cache": true,
|
| 45 |
"vocab_size": 50257
|
| 46 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 327657928
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9db0feade882009e968ef1a7797843adc44f17132107f57d7acb6e5e9de7c597
|
| 3 |
size 327657928
|
runs/Jul18_15-22-48_363fd02efcbe/events.out.tfevents.1721316169.363fd02efcbe.430.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf1c31a9d60b6fc9c21b0fff04937d1f5d991f0b8eb9cfdc46549e5c75dee355
|
| 3 |
+
size 5743
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5112
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02cfc50fc327716cf0f5a46d79bd85ab798255f07a5b93a0b74c8a57aa1210bc
|
| 3 |
size 5112
|