RichardErkhov commited on
Commit
7366a94
1 Parent(s): c2987b6

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +105 -0
README.md ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ Saul-Instruct-v1 - bnb 4bits
11
+ - Model creator: https://huggingface.co/Equall/
12
+ - Original model: https://huggingface.co/Equall/Saul-Instruct-v1/
13
+
14
+
15
+
16
+
17
+ Original model description:
18
+ ---
19
+ library_name: transformers
20
+ tags:
21
+ - legal
22
+ license: mit
23
+ language:
24
+ - en
25
+ ---
26
+
27
+ # Equall/Saul-Instruct-v1
28
+
29
+ This is the instruct model for Equall/Saul-Instruct-v1, a large instruct language model tailored for Legal domain. This model is obtained by continue pretraining of Mistral-7B.
30
+
31
+ Checkout our website and register https://equall.ai/
32
+
33
+
34
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/644a900e3a619fe72b14af0f/OU4Y3s-WckYKMN4fQkNiS.png)
35
+
36
+ ## Model Details
37
+
38
+ ### Model Description
39
+
40
+ <!-- Provide a longer summary of what this model is. -->
41
+
42
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
43
+
44
+ - **Developed by:** Equall.ai in collaboration with CentraleSupelec, Sorbonne Université, Instituto Superior Técnico and NOVA School of Law
45
+ - **Model type:** 7B
46
+ - **Language(s) (NLP):** English
47
+ - **License:** MIT
48
+
49
+ ### Model Sources
50
+
51
+ <!-- Provide the basic links for the model. -->
52
+
53
+ - **Paper:** https://arxiv.org/abs/2403.03883
54
+
55
+ ## Uses
56
+
57
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
58
+ You can use it for legal use cases that involves generation.
59
+
60
+ Here's how you can run the model using the pipeline() function from 🤗 Transformers:
61
+
62
+ ```python
63
+
64
+ # Install transformers from source - only needed for versions <= v4.34
65
+ # pip install git+https://github.com/huggingface/transformers.git
66
+ # pip install accelerate
67
+
68
+ import torch
69
+ from transformers import pipeline
70
+
71
+ pipe = pipeline("text-generation", model="Equall/Saul-Instruct-v1", torch_dtype=torch.bfloat16, device_map="auto")
72
+ # We use the tokenizer’s chat template to format each message - see https://huggingface.co/docs/transformers/main/en/chat_templating
73
+ messages = [
74
+ {"role": "user", "content": "[YOUR QUERY GOES HERE]"},
75
+ ]
76
+ prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
77
+ outputs = pipe(prompt, max_new_tokens=256, do_sample=False)
78
+ print(outputs[0]["generated_text"])
79
+ ```
80
+
81
+ ## Bias, Risks, and Limitations
82
+
83
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
84
+
85
+
86
+ This model is built upon the technology of LLM, which comes with inherent limitations. It may occasionally generate inaccurate or nonsensical outputs. Furthermore, being a 7B model, it's anticipated to exhibit less robust performance compared to larger models, such as the 70B variant.
87
+
88
+ ## Citation
89
+
90
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
91
+
92
+ **BibTeX:**
93
+
94
+
95
+ ```bibtex
96
+ @misc{colombo2024saullm7b,
97
+ title={SaulLM-7B: A pioneering Large Language Model for Law},
98
+ author={Pierre Colombo and Telmo Pessoa Pires and Malik Boudiaf and Dominic Culver and Rui Melo and Caio Corro and Andre F. T. Martins and Fabrizio Esposito and Vera Lúcia Raposo and Sofia Morgado and Michael Desa},
99
+ year={2024},
100
+ eprint={2403.03883},
101
+ archivePrefix={arXiv},
102
+ primaryClass={cs.CL}
103
+ }
104
+ ```
105
+