update readme.md
Browse files
README.md
CHANGED
@@ -4,9 +4,9 @@ language:
|
|
4 |
- en
|
5 |
---
|
6 |
|
7 |
-
# RedPajama-Base-
|
8 |
|
9 |
-
RedPajama-Base-
|
10 |
|
11 |
## Model Details
|
12 |
- **Developed by**: Together Computer.
|
@@ -34,8 +34,8 @@ MIN_TRANSFORMERS_VERSION = '4.25.1'
|
|
34 |
assert transformers.__version__ >= MIN_TRANSFORMERS_VERSION, f'Please upgrade transformers to version {MIN_TRANSFORMERS_VERSION} or higher.'
|
35 |
|
36 |
# init
|
37 |
-
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-Base-
|
38 |
-
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-Base-
|
39 |
model = model.to('cuda:0')
|
40 |
|
41 |
# infer
|
@@ -76,8 +76,8 @@ MIN_TRANSFORMERS_VERSION = '4.25.1'
|
|
76 |
assert transformers.__version__ >= MIN_TRANSFORMERS_VERSION, f'Please upgrade transformers to version {MIN_TRANSFORMERS_VERSION} or higher.'
|
77 |
|
78 |
# init
|
79 |
-
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-Base-
|
80 |
-
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-Base-
|
81 |
|
82 |
# infer
|
83 |
prompt = "Alan Turing is"
|
@@ -109,8 +109,8 @@ MIN_TRANSFORMERS_VERSION = '4.25.1'
|
|
109 |
assert transformers.__version__ >= MIN_TRANSFORMERS_VERSION, f'Please upgrade transformers to version {MIN_TRANSFORMERS_VERSION} or higher.'
|
110 |
|
111 |
# init
|
112 |
-
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-Base-
|
113 |
-
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-Base-
|
114 |
# infer
|
115 |
prompt = "Alan Turing is"
|
116 |
inputs = tokenizer(prompt, return_tensors='pt').to(model.device)
|
@@ -148,13 +148,13 @@ It is the responsibility of the end user to ensure that the model is used in a r
|
|
148 |
|
149 |
#### Out-of-Scope Use
|
150 |
|
151 |
-
RedPajama-Base-
|
152 |
For example, it may not be suitable for use in safety-critical applications or for making decisions that have a significant impact on individuals or society.
|
153 |
It is important to consider the limitations of the model and to only use it for its intended purpose.
|
154 |
|
155 |
#### Misuse and Malicious Use
|
156 |
|
157 |
-
RedPajama-Base-
|
158 |
Misuse of the model, such as using it to engage in illegal or unethical activities, is strictly prohibited and goes against the principles of the OpenChatKit community project.
|
159 |
|
160 |
Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:
|
@@ -171,7 +171,7 @@ Using the model to generate content that is cruel to individuals is a misuse of
|
|
171 |
|
172 |
## Limitations
|
173 |
|
174 |
-
`RedPajama-Base-
|
175 |
For example, the model may not always provide accurate or relevant answers, particularly for questions that are complex, ambiguous, or outside of its training data.
|
176 |
We therefore welcome contributions from individuals and organizations, and encourage collaboration towards creating a more robust and inclusive chatbot.
|
177 |
|
|
|
4 |
- en
|
5 |
---
|
6 |
|
7 |
+
# RedPajama-INCITE-Base-3B-v1
|
8 |
|
9 |
+
RedPajama-INCITE-Base-3B-v1, is a large transformer-based language model developed by Together Computer and trained on the RedPajama-Data-1T dataset.
|
10 |
|
11 |
## Model Details
|
12 |
- **Developed by**: Together Computer.
|
|
|
34 |
assert transformers.__version__ >= MIN_TRANSFORMERS_VERSION, f'Please upgrade transformers to version {MIN_TRANSFORMERS_VERSION} or higher.'
|
35 |
|
36 |
# init
|
37 |
+
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-INCITE-Base-3B-v1")
|
38 |
+
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-Base-3B-v1", torch_dtype=torch.float16)
|
39 |
model = model.to('cuda:0')
|
40 |
|
41 |
# infer
|
|
|
76 |
assert transformers.__version__ >= MIN_TRANSFORMERS_VERSION, f'Please upgrade transformers to version {MIN_TRANSFORMERS_VERSION} or higher.'
|
77 |
|
78 |
# init
|
79 |
+
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-INCITE-Base-3B-v1")
|
80 |
+
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-Base-3B-v1", device_map='auto', torch_dtype=torch.float16, load_in_8bit=True)
|
81 |
|
82 |
# infer
|
83 |
prompt = "Alan Turing is"
|
|
|
109 |
assert transformers.__version__ >= MIN_TRANSFORMERS_VERSION, f'Please upgrade transformers to version {MIN_TRANSFORMERS_VERSION} or higher.'
|
110 |
|
111 |
# init
|
112 |
+
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-INCITE-Base-3B-v1")
|
113 |
+
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-Base-3B-v1", torch_dtype=torch.bfloat16)
|
114 |
# infer
|
115 |
prompt = "Alan Turing is"
|
116 |
inputs = tokenizer(prompt, return_tensors='pt').to(model.device)
|
|
|
148 |
|
149 |
#### Out-of-Scope Use
|
150 |
|
151 |
+
`RedPajama-INCITE-Base-3B-v1` is a language model and may not perform well for other use cases outside of its intended scope.
|
152 |
For example, it may not be suitable for use in safety-critical applications or for making decisions that have a significant impact on individuals or society.
|
153 |
It is important to consider the limitations of the model and to only use it for its intended purpose.
|
154 |
|
155 |
#### Misuse and Malicious Use
|
156 |
|
157 |
+
`RedPajama-INCITE-Base-3B-v1` is designed for language modeling.
|
158 |
Misuse of the model, such as using it to engage in illegal or unethical activities, is strictly prohibited and goes against the principles of the OpenChatKit community project.
|
159 |
|
160 |
Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:
|
|
|
171 |
|
172 |
## Limitations
|
173 |
|
174 |
+
`RedPajama-INCITE-Base-3B-v1`, like other language models, has limitations that should be taken into consideration.
|
175 |
For example, the model may not always provide accurate or relevant answers, particularly for questions that are complex, ambiguous, or outside of its training data.
|
176 |
We therefore welcome contributions from individuals and organizations, and encourage collaboration towards creating a more robust and inclusive chatbot.
|
177 |
|