Text Generation
Transformers
PyTorch
English
mistral
conversational
text-generation-inference

Run this model with HF Jobs

Run Open-Orca/Mistral-7B-OpenOrca on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Problem with streaming support

#17
by mattma1970 - opened

I'm serving OpenOrca using HF TGI with stream=True. The problem is that the stopping sequence <|im_end|> consists of 10 tokens . It that string is split across two response chunks then it doesn't get automatically removed from the text.

I know this is a very specific instance but wondering if anyone else has encountered this and managed to solve it?

You need to upgrade the transformers version, mistral support was introduced in 4.34.0, TGI 1.1.0 depends on transformers 4.33.3. After upgrading transformers my TGI can stop without generating '<|im_end|>'.

We build a docker image if you want to use, zjuici/mirror.huggingface.text-generation-inference:1.1.0-transformers-4.34.1

Thanks for helping. I haven't tried yet. I am running TGI for the official docker image so I'm try yours instead. Cheers
Matt

mattma1970 changed discussion status to closed
mattma1970 changed discussion status to open

I'm curious about where the change in the transformer version is set in the image? (docker novice).

I could not find the Dockerfile right now but it should be as simple as (IIRC):

FROM ghcr.io/huggingface/text-generation-inference:1.1.0

RUN python -m pip install transformers==4.34.1

Thanks!

Sign up or log in to comment