Instructions to use Neurobrix/CogVideoX-2b-nbx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeuroBrix
How to use Neurobrix/CogVideoX-2b-nbx with NeuroBrix:
# pip install neurobrix neurobrix import zai-org/CogVideoX-2b --accept-license neurobrix run --model zai-org/CogVideoX-2b --prompt "a hot air balloon over mountains" --output video.mp4
- Notebooks
- Google Colab
- Kaggle
|
Download README.md from Neurobrix/CogVideoX-2b-nbx: direct link, hf CLI and curl.
- Browser
- Download file 2.83 kB
-
https://huggingface.co/Neurobrix/CogVideoX-2b-nbx/resolve/main/README.md
- Command line
-
hf download hf://Neurobrix/CogVideoX-2b-nbx/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/Neurobrix/CogVideoX-2b-nbx/resolve/main/README.md
2.83 kB
| license: apache-2.0 | |
| base_model: | |
| - zai-org/CogVideoX-2b | |
| library_name: neurobrix | |
| neurobrix_id: zai-org/CogVideoX-2b | |
| pipeline_tag: text-to-video | |
| extra_gated_heading: Download this NeuroBrix container | |
| extra_gated_prompt: "This container packages CogVideoX-2b by zai-org. To download it, accept the licence of the model's author ([apache-2.0](https://huggingface.co/zai-org/CogVideoX-2b)) and the NeuroBrix licence ([Apache 2.0](https://github.com/NeuroBrix/neurobrix/blob/main/LICENSE)); access is immediate. Create a free account on [neurobrix.org](https://neurobrix.org/register) for the full catalogue, the docs and the news." | |
| extra_gated_fields: | |
| "I accept the licence of the model's author": checkbox | |
| "I accept the NeuroBrix licence (Apache 2)": checkbox | |
| extra_gated_button_content: Accept and download | |
| tags: | |
| - neurobrix | |
| - nbx | |
| - triton | |
| - local-inference | |
| - video | |
| # CogVideoX-2b, as a NeuroBrix container | |
| **CogVideoX-2b** by **zai-org** ([original model](https://huggingface.co/zai-org/CogVideoX-2b)), packaged as a `.nbx` container so it runs in | |
| [NeuroBrix](https://github.com/NeuroBrix/neurobrix): one engine for every model, on the hardware you already own. | |
| Same model, same license as the original. The container holds everything the engine needs to run it: the model's | |
| computation graph, its weights, how its components connect, and its runtime defaults. | |
| ## Run it | |
| ```bash | |
| pip install neurobrix | |
| neurobrix import zai-org/CogVideoX-2b --accept-license | |
| neurobrix run --model zai-org/CogVideoX-2b --prompt "a hot air balloon over mountains" --output balloon.mp4 | |
| ``` | |
| NeuroBrix plans where every part of the model runs from the GPUs and memory it finds: one GPU, several, streamed, or on | |
| the host. It runs on NVIDIA GPUs, Mac GPUs (Metal) and CPU, with the PyTorch engine or with the Triton engine, which needs | |
| no PyTorch: [nbxtensor](https://github.com/NeuroBrix/nbxtensor) kernels, certified per GPU class. | |
| ## The container | |
| | | | | |
| |---|---| | |
| | Family | video generation model | | |
| | Container size | 13.8 GB | | |
| | SHA-256 | `d97a4f689032ee0d4d9596ae367c60c799fb7597efe716ee40586e54a2b7cd52` | | |
| | Download | [`CogVideoX-2b.nbx`](https://huggingface.co/Neurobrix/CogVideoX-2b-nbx/blob/main/CogVideoX-2b.nbx) in this repo, or [neurobrix.org/models/zai-org/CogVideoX-2b](https://neurobrix.org/models/zai-org/CogVideoX-2b) (or `neurobrix import`) | | |
| | License | apache-2.0, the original model's | | |
| ## Credits | |
| All credit for the model goes to **zai-org**; see the [original model card](https://huggingface.co/zai-org/CogVideoX-2b) for its training, intended use and | |
| limitations, which apply unchanged. NeuroBrix only packages and runs it. | |
| [GitHub](https://github.com/NeuroBrix) 路 [Hub: neurobrix.org](https://neurobrix.org) 路 [YouTube](https://www.youtube.com/@NeuroBrix) 路 [Documentation](https://docs.neurobrix.org) | |