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
Training in progress, step 1000
Browse filesFiles changed (2)
123version https://git-lfs.github.com/spec/v1oid sha256:f89c2b2fe0acf783d32c2c83d88e03f4ebe1e3f410d7b212237e890b194d1b0fsize 510398013123version https://git-lfs.github.com/spec/v1oid sha256:2303738c51570a37d6c2e1ba621c15daaa07342bbf016b273657f9330ba6a169size 510398013
123version https://git-lfs.github.com/spec/v1oid sha256:93d28c89533b9ad96af54a3afce2194494ce88295c6580a51487ef0cb87f8f28size 4182123version https://git-lfs.github.com/spec/v1oid sha256:42ab81225fca4851c6f744b9ba7242398b6e528c68d75965a6633e093a368389size 4339
pytorch_model.bin+1-1
runs/Feb21_04-23-07_982b68649fcd/events.out.tfevents.1676953539.982b68649fcd.615.0+2-2