From 3c73bdd9bb6ccad2a5c682719a5da45c257c9ed9 Mon Sep 17 00:00:00 2001 From: silvia Date: Fri, 14 Jun 2024 23:03:03 +0800 Subject: [PATCH 1/3] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e1392f2ac..ad5d160e3 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,9 @@ You can reduce the completion to a choice between multiple possibilities: ``` python import outlines - +# login to access mistral model +from huggingface_hub import login +login() model = outlines.models.transformers("mistralai/Mistral-7B-Instruct-v0.2") prompt = """You are a sentiment-labelling assistant. From 207702f54720758526f1604416ce71c8e2fd9ea1 Mon Sep 17 00:00:00 2001 From: silvia Date: Fri, 14 Jun 2024 23:12:22 +0800 Subject: [PATCH 2/3] Update README.md --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ad5d160e3..e1a0b978d 100644 --- a/README.md +++ b/README.md @@ -66,15 +66,19 @@ is to ensure that there is a well-defined interface between their output and user-defined code. **Outlines** provides ways to control the generation of language models to make their output more predictable. +Before using mistral models, request access on huggingface [here](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2). +``` python +# login to access mistral model +from huggingface_hub import login +login() +``` ### Multiple choices You can reduce the completion to a choice between multiple possibilities: ``` python import outlines -# login to access mistral model -from huggingface_hub import login -login() + model = outlines.models.transformers("mistralai/Mistral-7B-Instruct-v0.2") prompt = """You are a sentiment-labelling assistant. From 0354d2c69e00663c5ba004bca0a0a5b38065622c Mon Sep 17 00:00:00 2001 From: silvia Date: Sun, 16 Jun 2024 10:54:36 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e1a0b978d..aeb1126b6 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ is to ensure that there is a well-defined interface between their output and user-defined code. **Outlines** provides ways to control the generation of language models to make their output more predictable. -Before using mistral models, request access on huggingface [here](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2). +Before using mistral models, request access on huggingface [here](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2). ``` python # login to access mistral model from huggingface_hub import login