Text Generation
Transformers
PyTorch
TensorBoard
gpt2
Generated from Trainer
text-generation-inference
Instructions to use Xxanderr/ScraperTrainer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Xxanderr/ScraperTrainer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Xxanderr/ScraperTrainer")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Xxanderr/ScraperTrainer") model = AutoModelForCausalLM.from_pretrained("Xxanderr/ScraperTrainer") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Xxanderr/ScraperTrainer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xxanderr/ScraperTrainer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Xxanderr/ScraperTrainer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Xxanderr/ScraperTrainer
- SGLang
How to use Xxanderr/ScraperTrainer 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 "Xxanderr/ScraperTrainer" \ --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": "Xxanderr/ScraperTrainer", "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 "Xxanderr/ScraperTrainer" \ --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": "Xxanderr/ScraperTrainer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Xxanderr/ScraperTrainer with Docker Model Runner:
docker model run hf.co/Xxanderr/ScraperTrainer
Model save
Browse files
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 510396521
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e582fce1c21643093326b203cf5d69b65896d92048bc2bd690f0ced22715fe2
|
| 3 |
size 510396521
|
runs/Dec01_21-47-03_b35f5ffe1493/1669931233.9764876/events.out.tfevents.1669931233.b35f5ffe1493.77.5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:858acc468aa1a5ca4e82e7b70be8df391207ff3cf5f75d45c25ceef49ec86333
|
| 3 |
+
size 5462
|
runs/Dec01_21-47-03_b35f5ffe1493/events.out.tfevents.1669931233.b35f5ffe1493.77.4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:38bb48266aa3ea83441dfbe319e25576cfbe54558d3c5f0cc7f120b0e9ca604e
|
| 3 |
+
size 4438
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3375
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68fc4aa1cc5fe6d615ddedce59eb456fc489b84577b52762425bb28100a39722
|
| 3 |
size 3375
|