FritzStack commited on
Commit
9109354
·
verified ·
1 Parent(s): 6686823

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -12
README.md CHANGED
@@ -20,20 +20,15 @@ The Model [FritzStack/IRF-QWEN8B_light-mlx-fp16](https://huggingface.co/FritzSta
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-fp16")
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
  ```
 
20
 
21
  ```bash
22
  pip install mlx-lm
23
+ !pip install git+https://github.com/Fede-stack/TONYpy.git
24
  ```
25
 
26
  ```python
27
+ from TONY.IRF import IRFPredictor_mlx
28
 
29
+ text = 'Some days I keep living, even though I feel completely alone in the world'
30
+ irf = IRFPredictor_mlx(model_name='FritzStack/IRF-QWEN8B_light-mlx-fp16')
31
+ irf.highlight_evidence_IRF(text)
32
+ ```
33
+ = generate(model, tokenizer, prompt=prompt, verbose=True)
 
 
 
 
 
 
34
  ```