Instructions to use physicsrob/torchwright-doom-e1m1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use physicsrob/torchwright-doom-e1m1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="physicsrob/torchwright-doom-e1m1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("physicsrob/torchwright-doom-e1m1") model = AutoModelForCausalLM.from_pretrained("physicsrob/torchwright-doom-e1m1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use physicsrob/torchwright-doom-e1m1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "physicsrob/torchwright-doom-e1m1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "physicsrob/torchwright-doom-e1m1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/physicsrob/torchwright-doom-e1m1
- SGLang
How to use physicsrob/torchwright-doom-e1m1 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 "physicsrob/torchwright-doom-e1m1" \ --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": "physicsrob/torchwright-doom-e1m1", "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 "physicsrob/torchwright-doom-e1m1" \ --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": "physicsrob/torchwright-doom-e1m1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use physicsrob/torchwright-doom-e1m1 with Docker Model Runner:
docker model run hf.co/physicsrob/torchwright-doom-e1m1
| { | |
| "angle_bam": 8192, | |
| "angle_markers": [ | |
| "angle1", | |
| "angle2", | |
| "bangle1", | |
| "bangle2", | |
| "btheta1", | |
| "btheta2", | |
| "ds.uPhase", | |
| "normalAngle", | |
| "theta1", | |
| "theta2", | |
| "viewangle" | |
| ], | |
| "back_height_sentinel": -4096.0, | |
| "carrier": { | |
| "angle": { | |
| "lo": -4096, | |
| "size": 8192, | |
| "start": 65536 | |
| }, | |
| "value": { | |
| "hi": 1.0, | |
| "levels": 65536, | |
| "lo": -1.0, | |
| "size": 65536, | |
| "start": 0 | |
| } | |
| }, | |
| "flat_names": [ | |
| "CEIL3_5", | |
| "FLAT14", | |
| "FLAT5_5", | |
| "FLOOR4_8", | |
| "FLOOR7_1", | |
| "F_SKY1" | |
| ], | |
| "format": "torchwright_doom.tables.v2", | |
| "header_levels": { | |
| "R_AddLine": 1, | |
| "R_CheckPlane": 2, | |
| "R_DrawPlanes": 0, | |
| "R_DrawPlanes.nextPlane": 1, | |
| "R_DrawPlanes.nextVp": 1, | |
| "R_DrawPlayerSprites": 0, | |
| "R_MakeSpans.col": 2, | |
| "R_MapPlane.row": 2, | |
| "R_PointOnSide": 0, | |
| "R_StoreWallRange": 1, | |
| "R_Subsector": 0, | |
| "ST_Drawer": 0, | |
| "ST_Drawer.item": 1, | |
| "begin": 0, | |
| "boxpos": 1, | |
| "bspCheckBack": 0, | |
| "bspFront": 0, | |
| "bspReturn": 0, | |
| "done": 0, | |
| "ds.meta": 2, | |
| "ds.x2": 1, | |
| "nextSeg": 1, | |
| "noOp": 0, | |
| "node": 0, | |
| "planeDef": 0, | |
| "seg": 1, | |
| "setCursorX": 2, | |
| "ss": 0, | |
| "ssFloorPlane": 0, | |
| "viewx": 0, | |
| "visplaneBegin": 1 | |
| }, | |
| "layout": { | |
| "field_indent": 4, | |
| "indent_unit": 2 | |
| }, | |
| "marker_range": { | |
| "back.ceil": [ | |
| -4160.0, | |
| 256.0 | |
| ], | |
| "back.floor": [ | |
| -4160.0, | |
| 256.0 | |
| ], | |
| "bbox0.bottom": [ | |
| -2048.0, | |
| 3072.0 | |
| ], | |
| "bbox0.left": [ | |
| -2048.0, | |
| 3072.0 | |
| ], | |
| "bbox0.right": [ | |
| -2048.0, | |
| 3072.0 | |
| ], | |
| "bbox0.top": [ | |
| -2048.0, | |
| 3072.0 | |
| ], | |
| "bbox1.bottom": [ | |
| -2048.0, | |
| 3072.0 | |
| ], | |
| "bbox1.left": [ | |
| -2048.0, | |
| 3072.0 | |
| ], | |
| "bbox1.right": [ | |
| -2048.0, | |
| 3072.0 | |
| ], | |
| "bbox1.top": [ | |
| -2048.0, | |
| 3072.0 | |
| ], | |
| "bx1": [ | |
| -2048.0, | |
| 3072.0 | |
| ], | |
| "bx2": [ | |
| -2048.0, | |
| 3072.0 | |
| ], | |
| "by1": [ | |
| -2048.0, | |
| 3072.0 | |
| ], | |
| "by2": [ | |
| -2048.0, | |
| 3072.0 | |
| ], | |
| "ceil": [ | |
| -256.0, | |
| 256.0 | |
| ], | |
| "ds.bsilheight": [ | |
| -256.0, | |
| 256.0 | |
| ], | |
| "ds.scale1": [ | |
| 0.0, | |
| 13.516949152542372 | |
| ], | |
| "ds.scale1.den": [ | |
| 0.0, | |
| 1500.0 | |
| ], | |
| "ds.scale2": [ | |
| 0.0, | |
| 13.516949152542372 | |
| ], | |
| "ds.scale2.den": [ | |
| 0.0, | |
| 1500.0 | |
| ], | |
| "ds.scalestep": [ | |
| -0.0625, | |
| 0.0625 | |
| ], | |
| "ds.scalestep.den": [ | |
| 0.0, | |
| 164.0 | |
| ], | |
| "ds.tsilheight": [ | |
| -256.0, | |
| 256.0 | |
| ], | |
| "dx": [ | |
| -512.0, | |
| 512.0 | |
| ], | |
| "dy": [ | |
| -512.0, | |
| 512.0 | |
| ], | |
| "floor": [ | |
| -256.0, | |
| 256.0 | |
| ], | |
| "planeHeight": [ | |
| -256.0, | |
| 256.0 | |
| ], | |
| "rowoffset": [ | |
| -256.0, | |
| 256.0 | |
| ], | |
| "segDcTmidLower": [ | |
| -4160.0, | |
| 256.0 | |
| ], | |
| "segDcTmidMid": [ | |
| -256.0, | |
| 256.0 | |
| ], | |
| "segDcTmidUpper": [ | |
| -4160.0, | |
| 256.0 | |
| ], | |
| "setCursorY": [ | |
| -256.0, | |
| 256.0 | |
| ], | |
| "v1.x": [ | |
| -1152.0, | |
| 1152.0 | |
| ], | |
| "v1.y": [ | |
| -1152.0, | |
| 1152.0 | |
| ], | |
| "v2.x": [ | |
| -1152.0, | |
| 1152.0 | |
| ], | |
| "v2.y": [ | |
| -1152.0, | |
| 1152.0 | |
| ], | |
| "viewx": [ | |
| -1152.0, | |
| 1152.0 | |
| ], | |
| "viewy": [ | |
| -1152.0, | |
| 1152.0 | |
| ], | |
| "viewz": [ | |
| -256.0, | |
| 256.0 | |
| ], | |
| "wallColU": [ | |
| 0.0, | |
| 13.516949152542372 | |
| ], | |
| "x": [ | |
| -1152.0, | |
| 1152.0 | |
| ], | |
| "y": [ | |
| -1152.0, | |
| 1152.0 | |
| ] | |
| }, | |
| "origin": [ | |
| 1119.351851851852, | |
| -3262.5 | |
| ], | |
| "screen": { | |
| "column_count": 160, | |
| "height": 200, | |
| "pixel_width": 2, | |
| "width": 320 | |
| }, | |
| "sentinel_markers": [ | |
| "back.ceil", | |
| "back.floor" | |
| ], | |
| "value_steps": 65535, | |
| "wall_names": [ | |
| "BROWN1", | |
| "BROWN144", | |
| "COMPUTE2", | |
| "DOOR3", | |
| "DOORSTOP", | |
| "LITE3", | |
| "STARTAN3", | |
| "STEP6", | |
| "SUPPORT2" | |
| ], | |
| "x_coord_markers": [ | |
| "bbox0.left", | |
| "bbox0.right", | |
| "bbox1.left", | |
| "bbox1.right", | |
| "bx1", | |
| "bx2", | |
| "v1.x", | |
| "v2.x", | |
| "viewx", | |
| "x" | |
| ], | |
| "y_coord_markers": [ | |
| "bbox0.bottom", | |
| "bbox0.top", | |
| "bbox1.bottom", | |
| "bbox1.top", | |
| "by1", | |
| "by2", | |
| "v1.y", | |
| "v2.y", | |
| "viewy", | |
| "y" | |
| ] | |
| } | |