The dataset viewer is not available for this split.
Job manager crashed while running this job (missing heartbeats).
Error code:   JobManagerCrashedError

Need help to make the dataset viewer work? Open a discussion for direct support.

Mosaic format for embedding task text pair dataset

This repository is to store dataset shards using mosaic format.

  1. prepared at https://github.com/mesolitica/llama2-embedding/blob/main/notebooks/combine-embedding.ipynb

how-to

  1. git clone,
git lfs clone https://huggingface.co/datasets/malaysia-ai/mosaic-embedding-pairs
  1. load it,
from streaming import LocalDataset
from streaming.base.format.mds.encodings import Encoding, _encodings
import json

class ListStr(Encoding):
    def encode(self, obj):
        return json.dumps(obj).encode()

    def decode(self, data):
        return json.loads(data)

_encodings['liststr'] = ListStr

dataset = LocalDataset('mosaic-embedding-pairs')
len(dataset)
Downloads last month
0
Edit dataset card