Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
English
gpt2
Text-Generation
text-generation-inference
Instructions to use SRDdev/ScriptForge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SRDdev/ScriptForge with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SRDdev/ScriptForge")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SRDdev/ScriptForge") model = AutoModelForCausalLM.from_pretrained("SRDdev/ScriptForge", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SRDdev/ScriptForge with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SRDdev/ScriptForge" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SRDdev/ScriptForge", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SRDdev/ScriptForge
- SGLang
How to use SRDdev/ScriptForge 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 "SRDdev/ScriptForge" \ --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": "SRDdev/ScriptForge", "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 "SRDdev/ScriptForge" \ --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": "SRDdev/ScriptForge", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SRDdev/ScriptForge with Docker Model Runner:
docker model run hf.co/SRDdev/ScriptForge
Commit History
-
Training in progress, step 7500
6350a7a -
Training in progress, step 7000
bd0357e -
Training in progress, step 6500
eb20663 -
Training in progress, step 6000
0b5ddc8 -
Training in progress, step 5500
9b2bd1e -
Training in progress, step 5000
d6184f9 -
Training in progress, step 4500
7b46bf5 -
Training in progress, step 4000
e35a566 -
Training in progress, step 3500
bba5f56 -
Training in progress, step 3000
2f74b00 -
Training in progress, step 2500
27c1709 -
Training in progress, step 2000
4fe5e16 -
Training in progress, step 1500
b34a15f -
Training in progress, step 1000
52ce992 -
Training in progress, step 500
691b825 -
Upload model
5c0a968 -
Upload tokenizer
376adc2 -
Update README.md
a3b0275 -
Training in progress, step 500
c85cb35 -
Training in progress, step 2000
4f8e2cf -
Training in progress, step 1500
34c4cfa -
Training in progress, step 1000
3063bc1 -
Training in progress, step 500
a7328ea -
Training in progress, step 4500
c231df8 -
Training in progress, step 4000
e6e38d5 -
Training in progress, step 3500
43de6f4 -
Training in progress, step 3000
8a098f9 -
Training in progress, step 2500
c2d3c8b -
Training in progress, step 2000
9c5a30e -
Training in progress, step 1500
6b709e2 -
Training in progress, step 1000
430b109 -
Training in progress, step 500
f5fd9b3
-
Update README.md
4fe7b6f -
Upload model
f2d0497 -
Upload tokenizer
df857d1 -
Create README.md
4f83dc3 -
Upload model
9c4b0b4 -
Upload tokenizer
82cf9f1 -
Upload tokenizer
9d43bcc -
Upload model
53566d9 -
initial commit
bf09690