jesusoctavioas commited on
Commit
6fef5f4
·
verified ·
1 Parent(s): 4aa428a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -2
README.md CHANGED
@@ -8,7 +8,6 @@ tags:
8
  - nlp
9
  - code
10
  - mlx
11
- - mlx-my-repo
12
  base_model: microsoft/phi-2
13
  ---
14
 
@@ -19,7 +18,13 @@ The Model [jesusoctavioas/phi-2-mlx-4Bit](https://huggingface.co/jesusoctavioas/
19
  ## Use with mlx
20
 
21
  ```bash
 
 
 
 
 
22
  pip install mlx-lm
 
23
  ```
24
 
25
  ```python
@@ -36,4 +41,4 @@ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not
36
  )
37
 
38
  response = generate(model, tokenizer, prompt=prompt, verbose=True)
39
- ```
 
8
  - nlp
9
  - code
10
  - mlx
 
11
  base_model: microsoft/phi-2
12
  ---
13
 
 
18
  ## Use with mlx
19
 
20
  ```bash
21
+ # Create a virtual enviroment if needed.
22
+ python -m venv mlx-venv
23
+ # then activate the virtual enviroment if needed.
24
+ source mlx-venv/bin/activate
25
+ # then install mlx.
26
  pip install mlx-lm
27
+
28
  ```
29
 
30
  ```python
 
41
  )
42
 
43
  response = generate(model, tokenizer, prompt=prompt, verbose=True)
44
+ ```