FritzStack commited on
Commit
fa0fd03
·
verified ·
1 Parent(s): a5ce136

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -12
README.md CHANGED
@@ -18,22 +18,16 @@ The Model [FritzStack/IRF-QWEN8B_light-mlx-4Bit](https://huggingface.co/FritzSta
18
 
19
  ## Use with mlx
20
 
 
21
  ```bash
22
  pip install mlx-lm
 
23
  ```
24
 
25
  ```python
26
- from mlx_lm import load, generate
27
-
28
- model, tokenizer = load("FritzStack/IRF-QWEN8B_light-mlx-4Bit")
29
-
30
- prompt="hello"
31
-
32
- if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
33
- messages = [{"role": "user", "content": prompt}]
34
- prompt = tokenizer.apply_chat_template(
35
- messages, tokenize=False, add_generation_prompt=True
36
- )
37
 
38
- response = generate(model, tokenizer, prompt=prompt, verbose=True)
 
 
39
  ```
 
18
 
19
  ## Use with mlx
20
 
21
+
22
  ```bash
23
  pip install mlx-lm
24
+ !pip install git+https://github.com/Fede-stack/TONYpy.git
25
  ```
26
 
27
  ```python
28
+ from TONY.IRF import IRFPredictor_mlx
 
 
 
 
 
 
 
 
 
 
29
 
30
+ text = 'Some days I keep living, even though I feel completely alone in the world'
31
+ irf = IRFPredictor_mlx(model_name='FritzStack/IRF-QWEN8B-mlx-DoubleQ4')
32
+ irf.highlight_evidence_IRF(text)
33
  ```