Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
English
gpt2
Text-Generation
text-generation-inference
Run this model with HF Jobs
Run SRDdev/ScriptForge on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/SRDdev/ScriptForge. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SRDdev/ScriptForge on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/SRDdev/ScriptForge. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/SRDdev/ScriptForge. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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 500
Browse filesFiles changed (5)
32 unmodified lines3334353637383932 unmodified lines}},"torch_dtype": "float32","transformers_version": "4.26.1","use_cache": true,"vocab_size": 50257}32 unmodified lines3334353637383932 unmodified lines}},"torch_dtype": "float32","transformers_version": "4.20.1","use_cache": true,"vocab_size": 50257}
123version https://git-lfs.github.com/spec/v1oid sha256:049aeb7093ccf2e9b16f0efd877fe60da4af86608c5a283a6822b5171ef5e0f0size 510398013123version https://git-lfs.github.com/spec/v1oid sha256:1a3bf1e9ea6b63d1f40ec791ef91462799870ff01ff91871ad4dd31eae1ff24asize 510396521
123version https://git-lfs.github.com/spec/v1oid sha256:aed7f1143fb2537c9d8761fdce793422abe914d61d2781bd20a0a5cafc4f4a0asize 5305123version https://git-lfs.github.com/spec/v1oid sha256:2a7782448a8f9d8c8ff47b8b8391492b6a83028e7c9eab6f7a07d75b5c425e7asize 3989123version https://git-lfs.github.com/spec/v1oid sha256:467ee1b6cf61ce76375176117231f4e5a129d21908bf9266d577f34325266c6dsize 3451123version https://git-lfs.github.com/spec/v1oid sha256:b77fcb8954fee673454d8e30c70163bc2edd8aafc96f7cdf2096eb9fed130702size 3311
config.json+1-1
pytorch_model.bin+2-2
runs/Feb21_12-47-49_a1a0e6007542/1676983844.0739243/events.out.tfevents.1676983844.a1a0e6007542.23.1Added+3
runs/Feb21_12-47-49_a1a0e6007542/events.out.tfevents.1676983844.a1a0e6007542.23.0Added+3
training_args.bin+2-2