Instructions to use physicsrob/torchwright-doom-e1m1-80x50 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use physicsrob/torchwright-doom-e1m1-80x50 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="physicsrob/torchwright-doom-e1m1-80x50")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("physicsrob/torchwright-doom-e1m1-80x50") model = AutoModelForCausalLM.from_pretrained("physicsrob/torchwright-doom-e1m1-80x50", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use physicsrob/torchwright-doom-e1m1-80x50 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-80x50" # 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-80x50", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/physicsrob/torchwright-doom-e1m1-80x50
- SGLang
How to use physicsrob/torchwright-doom-e1m1-80x50 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-80x50" \ --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-80x50", "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-80x50" \ --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-80x50", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use physicsrob/torchwright-doom-e1m1-80x50 with Docker Model Runner:
docker model run hf.co/physicsrob/torchwright-doom-e1m1-80x50
| { | |
| "architectures": [ | |
| "Phi3ForCausalLM" | |
| ], | |
| "attention_dropout": 0.0, | |
| "attn_implementation": "eager", | |
| "bos_token_id": 93376, | |
| "doom_screen_config": { | |
| "detail": "low", | |
| "height": 50, | |
| "hud": true, | |
| "scale": 4, | |
| "width": 80 | |
| }, | |
| "doom_vocab_fingerprint": "ee25bcb4bd51bc5d62910c933953a7294847725a2d1754ec1e49ed53f4285ba1", | |
| "embd_pdrop": 0.0, | |
| "eos_token_id": 93309, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 4096, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 6732, | |
| "max_position_embeddings": 16384, | |
| "model_type": "phi3", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 70, | |
| "num_key_value_heads": 16, | |
| "original_max_position_embeddings": 16384, | |
| "pad_token_id": 93309, | |
| "resid_pdrop": 0.0, | |
| "rms_norm_eps": 1e-05, | |
| "rope_parameters": { | |
| "partial_rotary_factor": 0.5, | |
| "rope_theta": 500000.0, | |
| "rope_type": "default" | |
| }, | |
| "sliding_window": null, | |
| "task_specific_params": { | |
| "text-generation": { | |
| "do_sample": false, | |
| "max_new_tokens": 8000 | |
| } | |
| }, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.13.1", | |
| "use_cache": true, | |
| "vocab_size": 93378 | |
| } | |