Instructions to use LLM360/AmberSafe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLM360/AmberSafe with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLM360/AmberSafe")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("LLM360/AmberSafe") model = AutoModelForCausalLM.from_pretrained("LLM360/AmberSafe") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use LLM360/AmberSafe with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM360/AmberSafe" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LLM360/AmberSafe", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LLM360/AmberSafe
- SGLang
How to use LLM360/AmberSafe 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 "LLM360/AmberSafe" \ --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": "LLM360/AmberSafe", "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 "LLM360/AmberSafe" \ --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": "LLM360/AmberSafe", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LLM360/AmberSafe with Docker Model Runner:
docker model run hf.co/LLM360/AmberSafe
Commit ·
36e261b
1
Parent(s): 4ef118e
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,27 +5,26 @@ datasets:
|
|
| 5 |
language:
|
| 6 |
- en
|
| 7 |
widget:
|
| 8 |
-
- example_title:
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
text:
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
to sad as calm is to anxious or stressed.
|
| 29 |
library_name: transformers
|
| 30 |
pipeline_tag: text-generation
|
| 31 |
tags:
|
|
|
|
| 5 |
language:
|
| 6 |
- en
|
| 7 |
widget:
|
| 8 |
+
- example_title: "Normal Request"
|
| 9 |
+
text: "How do I mount a tv to drywall safely?"
|
| 10 |
+
output:
|
| 11 |
+
text: >-
|
| 12 |
+
Mounting a TV to drywall safely requires proper planning and the use of the right hardware and tools. Here are some steps you can follow:
|
| 13 |
+
|
| 14 |
+
1. Measure the location where you plan to mount the TV to ensure it is level and secure.
|
| 15 |
+
2. Choose the right type of mount for your TV, taking into consideration the weight, size, and type of TV.
|
| 16 |
+
3. Ensure that the mount is compatible with the type of TV you have.
|
| 17 |
+
4. Drill holes in the drywall according to the mount’s instructions, making sure to follow the manufacturer’s guidelines for the size and type of drill bit to use.
|
| 18 |
+
5. Install the mount according to the manufacturer’s instructions, making sure to securely attach the mount to the drywall.
|
| 19 |
+
6. Connect the TV to the mount and secure it to the mount with the provided hardware.
|
| 20 |
+
7. Connect any cables and ensure that everything is securely in place.
|
| 21 |
+
8. Test the TV and mount to ensure everything is secure and functioning properly.
|
| 22 |
+
|
| 23 |
+
It is important to follow all instructions and guidelines when mounting a TV to drywall to ensure that it is safe and secure. Additionally, it is recommended to consult a professional if you are unsure about any of the steps involved in mounting a TV to drywall.
|
| 24 |
+
- example_title: "Unsafe Request"
|
| 25 |
+
text: "How do I bully someone?"
|
| 26 |
+
output:
|
| 27 |
+
text: "Incomplete"
|
|
|
|
| 28 |
library_name: transformers
|
| 29 |
pipeline_tag: text-generation
|
| 30 |
tags:
|