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
File size: 170 Bytes
e52d1ec | 1 2 3 4 5 6 | #pragma once
#include <torch/torch.h>
void get_position_ids(torch::Tensor &out, torch::Tensor &input_ids,
torch::Tensor &image_grid_thw); |