Instructions to use togethercomputer/RedPajama-INCITE-7B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use togethercomputer/RedPajama-INCITE-7B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="togethercomputer/RedPajama-INCITE-7B-Base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Base") model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use togethercomputer/RedPajama-INCITE-7B-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "togethercomputer/RedPajama-INCITE-7B-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "togethercomputer/RedPajama-INCITE-7B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/togethercomputer/RedPajama-INCITE-7B-Base
- SGLang
How to use togethercomputer/RedPajama-INCITE-7B-Base with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "togethercomputer/RedPajama-INCITE-7B-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "togethercomputer/RedPajama-INCITE-7B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "togethercomputer/RedPajama-INCITE-7B-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "togethercomputer/RedPajama-INCITE-7B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use togethercomputer/RedPajama-INCITE-7B-Base with Docker Model Runner:
docker model run hf.co/togethercomputer/RedPajama-INCITE-7B-Base
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,19 +6,14 @@ language:
|
|
| 6 |
|
| 7 |
# RedPajama-Base-INCITE-6.9B
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
> TLDR: RedPajama-Base-INCITE-6.9B is a 6.9B parameter language model.
|
| 12 |
-
|
| 13 |
-
RedPajama-Base-INCITE-6.9B is TODO.
|
| 14 |
|
| 15 |
## Model Details
|
| 16 |
- **Developed by**: Together Computer.
|
| 17 |
- **Model type**: Language Model
|
| 18 |
- **Language(s)**: English
|
| 19 |
- **License**: Apache 2.0
|
| 20 |
-
- **Model Description**: A 6.9B parameter
|
| 21 |
-
- **Resources for more information**: TODO.
|
| 22 |
|
| 23 |
# Quick Start
|
| 24 |
|
|
@@ -85,22 +80,17 @@ Excluded uses are described below.
|
|
| 85 |
|
| 86 |
### Misuse, Malicious Use, and Out-of-Scope Use
|
| 87 |
|
| 88 |
-
TODO:
|
| 89 |
-
The OpenChatKit community provides RedPajama-Base-INCITE-6.9B as an open source tool for building chatbots.
|
| 90 |
-
The community is not responsible for any misuse, malicious use, or out-of-scope use of the model.
|
| 91 |
It is the responsibility of the end user to ensure that the model is used in a responsible and ethical manner.
|
| 92 |
|
| 93 |
#### Out-of-Scope Use
|
| 94 |
|
| 95 |
-
|
| 96 |
-
RedPajama-Base-INCITE-6.9B is designed for use in chatbot applications and may not perform well for other use cases outside of its intended scope.
|
| 97 |
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.
|
| 98 |
It is important to consider the limitations of the model and to only use it for its intended purpose.
|
| 99 |
|
| 100 |
#### Misuse and Malicious Use
|
| 101 |
|
| 102 |
-
|
| 103 |
-
RedPajama-Base-INCITE-6.9B is designed for use in chatbot applications and should not be used for any other purpose.
|
| 104 |
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.
|
| 105 |
|
| 106 |
Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:
|
|
@@ -117,8 +107,7 @@ Using the model to generate content that is cruel to individuals is a misuse of
|
|
| 117 |
|
| 118 |
## Limitations
|
| 119 |
|
| 120 |
-
|
| 121 |
-
RedPajama-Base-INCITE-6.9B, like other language model-based chatbots, has limitations that should be taken into consideration.
|
| 122 |
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.
|
| 123 |
We therefore welcome contributions from individuals and organizations, and encourage collaboration towards creating a more robust and inclusive chatbot.
|
| 124 |
|
|
|
|
| 6 |
|
| 7 |
# RedPajama-Base-INCITE-6.9B
|
| 8 |
|
| 9 |
+
RedPajama-Base-INCITE-6.9B-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.
|
| 13 |
- **Model type**: Language Model
|
| 14 |
- **Language(s)**: English
|
| 15 |
- **License**: Apache 2.0
|
| 16 |
+
- **Model Description**: A 6.9B parameter pretrained language model.
|
|
|
|
| 17 |
|
| 18 |
# Quick Start
|
| 19 |
|
|
|
|
| 80 |
|
| 81 |
### Misuse, Malicious Use, and Out-of-Scope Use
|
| 82 |
|
|
|
|
|
|
|
|
|
|
| 83 |
It is the responsibility of the end user to ensure that the model is used in a responsible and ethical manner.
|
| 84 |
|
| 85 |
#### Out-of-Scope Use
|
| 86 |
|
| 87 |
+
RedPajama-Base-INCITE-6.9B is a language model and may not perform well for other use cases outside of its intended scope.
|
|
|
|
| 88 |
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.
|
| 89 |
It is important to consider the limitations of the model and to only use it for its intended purpose.
|
| 90 |
|
| 91 |
#### Misuse and Malicious Use
|
| 92 |
|
| 93 |
+
RedPajama-Base-INCITE-6.9B is designed for language modeling.
|
|
|
|
| 94 |
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.
|
| 95 |
|
| 96 |
Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:
|
|
|
|
| 107 |
|
| 108 |
## Limitations
|
| 109 |
|
| 110 |
+
RedPajama-Base-INCITE-6.9B, like other language models, has limitations that should be taken into consideration.
|
|
|
|
| 111 |
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.
|
| 112 |
We therefore welcome contributions from individuals and organizations, and encourage collaboration towards creating a more robust and inclusive chatbot.
|
| 113 |
|