Instructions to use replicate/mrope_get_position_ids with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/mrope_get_position_ids with Kernels:
# !pip install kernels from kernels import get_kernel # a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones kernel = get_kernel("replicate/mrope_get_position_ids", version=1) - Notebooks
- Google Colab
- Kaggle
Download torch-ext/torch_binding.h from replicate/mrope_get_position_ids: direct link, hf CLI and curl.
- Browser
- Download file 170 Bytes
-
https://huggingface.co/replicate/mrope_get_position_ids/resolve/main/torch-ext/torch_binding.h
- Command line
-
hf download hf://replicate/mrope_get_position_ids/torch-ext/torch_binding.h
-
curl -L -o torch_binding.h https://huggingface.co/replicate/mrope_get_position_ids/resolve/main/torch-ext/torch_binding.h
170 Bytes
| void get_position_ids(torch::Tensor &out, torch::Tensor &input_ids, | |
| torch::Tensor &image_grid_thw); |