Text-to-Image
Diffusers
Safetensors
English
Chinese
socrates_image
image-generation
flow-matching
vision-language
recurrent-transformer
latent-workspace
custom-code
Instructions to use mingqiancha233/Socrates-Image-1.0-31B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mingqiancha233/Socrates-Image-1.0-31B with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("mingqiancha233/Socrates-Image-1.0-31B", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
File size: 1,187 Bytes
53aebab | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Single-GPU inference container
Requires Docker with NVIDIA Container Toolkit, a compatible NVIDIA driver, and a CUDA GPU with sufficient BF16 memory. A 96 GB GPU is recommended. The container installs the pinned Python runtime but does not download model weights during its build.
From the root of the downloaded repository:
```bash
docker build -f infra/Dockerfile -t socrates-image:1.0 .
mkdir -p outputs
docker run --rm --gpus '"device=0"' --ipc=host \
-v "$PWD:/model:ro" \
-v "$PWD/outputs:/outputs" \
socrates-image:1.0 \
--model-path /model \
--prompt "A small observatory on a mountain under a starry sky." \
--resolution 1024 --steps 40 --seed 42 --output /outputs/sample.png
```
For a lower-resolution smoke run, use `--resolution 256 --steps 4`. The full component set is still loaded, so this does not eliminate the weight-memory requirement. The example runs one request and exits; it is not a hosted inference endpoint or concurrent serving implementation.
The inference container is provided as a reference configuration. The current release was smoke-validated on its original CUDA environment; this Docker build has not been GPU-validated separately.
|