Instructions to use SparseLLM/relu-100B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SparseLLM/relu-100B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SparseLLM/relu-100B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SparseLLM/relu-100B") model = AutoModelForCausalLM.from_pretrained("SparseLLM/relu-100B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use SparseLLM/relu-100B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SparseLLM/relu-100B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SparseLLM/relu-100B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SparseLLM/relu-100B
- SGLang
How to use SparseLLM/relu-100B 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 "SparseLLM/relu-100B" \ --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": "SparseLLM/relu-100B", "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 "SparseLLM/relu-100B" \ --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": "SparseLLM/relu-100B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SparseLLM/relu-100B with Docker Model Runner:
docker model run hf.co/SparseLLM/relu-100B
Yixin Song commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -38,16 +38,6 @@ We pretrain the model on 100 billion tokens, including:
|
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
-
### License Disclaimer:
|
| 42 |
-
|
| 43 |
-
This model is bound by the license & usage restrictions of the original Llama-2 model. And comes with no warranty or gurantees of any kind.
|
| 44 |
-
|
| 45 |
-
### Limitations & Biases:
|
| 46 |
-
|
| 47 |
-
Llama 2 and fine-tuned variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Llama 2 and any fine-tuned varient's potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 2 variants, developers should perform safety testing and tuning tailored to their specific applications of the model.
|
| 48 |
-
|
| 49 |
-
Please see the Responsible Use Guide available at https://ai.meta.com/llama/responsible-use-guide/
|
| 50 |
-
|
| 51 |
### Citiation:
|
| 52 |
|
| 53 |
Please kindly cite using the following BibTeX:
|
|
@@ -60,6 +50,3 @@ Please kindly cite using the following BibTeX:
|
|
| 60 |
}
|
| 61 |
```
|
| 62 |
|
| 63 |
-
#### Acknowledgments:
|
| 64 |
-
|
| 65 |
-
The model card is modified from [ORCA_LLaMA_70B_QLoRA](https://huggingface.co/fangloveskari/ORCA_LLaMA_70B_QLoRA).
|
|
|
|
| 38 |
|
| 39 |
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
### Citiation:
|
| 42 |
|
| 43 |
Please kindly cite using the following BibTeX:
|
|
|
|
| 50 |
}
|
| 51 |
```
|
| 52 |
|
|
|
|
|
|
|
|
|