Instructions to use SRDdev/ScriptForge-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SRDdev/ScriptForge-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SRDdev/ScriptForge-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SRDdev/ScriptForge-small") model = AutoModelForCausalLM.from_pretrained("SRDdev/ScriptForge-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SRDdev/ScriptForge-small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SRDdev/ScriptForge-small" # 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-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SRDdev/ScriptForge-small
- SGLang
How to use SRDdev/ScriptForge-small 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-small" \ --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-small", "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-small" \ --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-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SRDdev/ScriptForge-small with Docker Model Runner:
docker model run hf.co/SRDdev/ScriptForge-small
Commit History
-
Update README.md
a1019a2
-
Update README.md
cb423c5
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (b6805ca6cfb85f5041731fa0be8d786d50ae5490) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>28b5277 -
Update README.md
08aceac
-
Update config.json
0d435ec -
Update generation_config.json
2a48f68 -
Update README.md
adcf957 -
Update generation_config.json
ef13410 -
Update config.json
e8ab369 -
Update config.json
9f26495 -
Update generation_config.json
42c0cf2 -
Update README.md
987cb63
-
Update README.md
d561bb5 -
Create README.md
2f409ed -
Update config.json
961407b -
Update generation_config.json
b576345 -
Upload model
eee4474 -
Upload tokenizer
eaf6629 -
Upload model
622cc02 -
Upload tokenizer
041d6dc -
initial commit
43a4669