FritzStack commited on
Commit
67e394f
·
verified ·
1 Parent(s): 7b71dd3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -13
README.md CHANGED
@@ -20,20 +20,13 @@ The Model [FritzStack/IRF-Qwen_4B_4bit-merged_2epo-mlx-4Bit](https://huggingface
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-Qwen_4B_4bit-merged_2epo-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
- ```
 
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-QWEN4B-mlx-Q4')
31
+ irf.highlight_evidence_IRF(text)
32
+ ```