Skip to content
TheChatArchiveThe Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)Hugging Face OpenAssistant Conversations (oasst2)

def process(self, data): X = data[1] + " " + data[2] Y = pd.getdummies(data[0],…

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    def _process(self, data): X = data[1] + " " + data[2] Y = pd.get_dummies(data[0], prefix="y").astype(np.float32) return X, Y, len(data) I have a bug Failed to convert a NumPy array to a Tensor (Unsupported object type float).. Can you show me where is the problem and how to fix it

  2. Assistant

    Based on the code you provided, it's difficult to see exactly what the problem is. The error mentions that a NumPy array is converted to a Torch Tensor, but, In the code you provided, there is no obvious place where a NumPy array is converted to a Tensor. I may be able to do a better job helping you if you provide some additional surrounding code, and perhaps the exact error message you get.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.