Run this model with HF Jobs
Run exalandru/RealESRGAN-x4plus-MLX on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/exalandru/RealESRGAN-x4plus-MLX. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/exalandru/RealESRGAN-x4plus-MLX on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use exalandru/RealESRGAN-x4plus-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use exalandru/RealESRGAN-x4plus-MLX with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download exalandru/RealESRGAN-x4plus-MLX --local-dir RealESRGAN-x4plus-MLX
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Real-ESRGAN x4plus β Quantum MLX
Real-ESRGAN is a practical blind super-resolution model by Xintao Wang et al.
RealESRGAN_x4plus.pth is its 4Γ model for photographs and general images. This repository holds a float16, MLX-layout copy of that checkpoint for Apple
silicon, used by Quantum Image Studio (Photo upscaler). This is not an official release of the Real-ESRGAN authors. Converted from the official
GitHub release asset RealESRGAN_x4plus.pth (tag v0.1.0).
Architecture: RRDBNet (23 residual-in-residual dense blocks, 64 features, 32 growth channels), 16.7 M parameters.
What's in the repo
.
βββ README.md
βββ LICENSE BSD 3-Clause (Real-ESRGAN)
βββ NOTICE
βββ native/
βββ quantum-model.json
βββ model/model.safetensors 33.5 MB, float16, MLX layout (702 tensors)
native/quantum-model.json is the Quantum Suite manifest: every file with its size and SHA-256, the source pin of this
repository and the provenance. This model has a single variant (native): the weights are not quantized.
| File | Size | SHA-256 |
|---|---|---|
native/model/model.safetensors |
33,461,662 B | 30b22186ea8cd33dad8a4648e21f495037be168067bbf1b69b6267428b701636 |
Recommended unified memory: 4 GB (measured peak β 1.4 GB for a 1024Γ1024 output).
Usage
Installed and loaded by the Quantum Suite apps through the shared model store. Convolution weights are in MLX layout
([out, kH, kW, in]); for PyTorch use the original weights from the Real-ESRGAN releases.
Provenance
- Upstream asset:
RealESRGAN_x4plus.pthfromxinntao/Real-ESRGANreleasev0.1.0(tag commit4c05b20cb30aded73ed3731848a9fbbf70c7c0ac); the weights are not hosted on the Hugging Face Hub by the authors, so this card does not setbase_model. - Upstream URL:
https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth - Upstream size / SHA-256 (of the downloaded bytes): 67,040,989 B /
4fa0d38905f75ac06eb49a7951b426670021be3018265fd191d2125df9d682f1 - License: BSD 3-Clause License, Copyright (c) 2021 Xintao Wang (text from the upstream repository; the x4plus tag v0.1.0 predates the LICENSE file, the identical text at tags v0.2.2.4 / v0.2.5.0 is used).
Changes made
- Converted the official
RealESRGAN_x4plus.pth(PyTorch state dict, float32; keyparams_ema) to safetensors (models/realesrgan/convert.pyof the QuantumPublish tooling): tensors sorted by name, names unchanged, every tensor cast from float32 to float16, 4-D convolution weights transposed from PyTorch[out, in, kH, kW]to MLX[out, kH, kW, in](values unchanged). No retraining, fine-tuning or merging.
The conversion is deterministic. 702 tensors. All tensors are equal (after the same cast and transpose) to the file the Quantum app already used.
Validation
One 256Γ256 photo crop was upscaled Γ4 through the Quantum app engine that loads this model, using exactly these files (1024Γ1024 output, finite, not equal to a bicubic resize). No quality evaluation is published here.
Citation
@InProceedings{wang2021realesrgan,
author = {Xintao Wang and Liangbin Xie and Chao Dong and Ying Shan},
title = {Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data},
booktitle = {International Conference on Computer Vision Workshops (ICCVW)},
date = {2021}
}
License
BSD 3-Clause License (see LICENSE), the license of the original weights. See NOTICE.
Quantized