https://coderbyte.com/dashboard/paperlesspost-4mpoj:back-end-developer-k-etkvkwx
- Intro Candidate
- Some general programming questions (15-20 min)
- be as detailed as you can
- can ask questions
https://coderbyte.com/dashboard/paperlesspost-4mpoj:back-end-developer-k-etkvkwx
| import torch | |
| from huggingface_hub import hf_hub_download | |
| from diffusers import FluxTransformer2DModel, DiffusionPipeline | |
| dtype, device = torch.bfloat16, "cuda" | |
| ckpt_id = "black-forest-labs/FLUX.1-schnell" | |
| with torch.device("meta"): | |
| config = FluxTransformer2DModel.load_config(ckpt_id, subfolder="transformer") | |
| model = FluxTransformer2DModel.from_config(config).to(dtype) |
| server { | |
| listen 80; | |
| server_name mysite.com; | |
| root /var/www/mysite.com/; | |
| location / { | |
| if (-f $document_root/maintenance.html) { | |
| return 503; | |
| } | |
| ... # the rest of your config goes here |