Instructions to use taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("NousResearch/Nous-Hermes-2-SOLAR-10.7B") model = PeftModel.from_pretrained(base_model, "taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32") - Transformers
How to use taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32
- SGLang
How to use taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32 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 "taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32 with Docker Model Runner:
docker model run hf.co/taskruy1/39079df1-f9d0-4734-97d7-2def6494fa32
Emergency push - timeout approaching
Browse files- README.md +12 -4
- adapter_model.safetensors +1 -1
README.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
|
@@ -15,7 +20,7 @@ tags: []
|
|
| 15 |
|
| 16 |
<!-- Provide a longer summary of what this model is. -->
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
- **Developed by:** [More Information Needed]
|
| 21 |
- **Funded by [optional]:** [More Information Needed]
|
|
@@ -196,4 +201,7 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
| 196 |
|
| 197 |
## Model Card Contact
|
| 198 |
|
| 199 |
-
[More Information Needed]
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: NousResearch/Nous-Hermes-2-SOLAR-10.7B
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:NousResearch/Nous-Hermes-2-SOLAR-10.7B
|
| 7 |
+
- lora
|
| 8 |
+
- transformers
|
| 9 |
---
|
| 10 |
|
| 11 |
# Model Card for Model ID
|
|
|
|
| 20 |
|
| 21 |
<!-- Provide a longer summary of what this model is. -->
|
| 22 |
|
| 23 |
+
|
| 24 |
|
| 25 |
- **Developed by:** [More Information Needed]
|
| 26 |
- **Funded by [optional]:** [More Information Needed]
|
|
|
|
| 201 |
|
| 202 |
## Model Card Contact
|
| 203 |
|
| 204 |
+
[More Information Needed]
|
| 205 |
+
### Framework versions
|
| 206 |
+
|
| 207 |
+
- PEFT 0.16.0
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 325741672
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:16a20b98eda10f6ed83ed162ac46544ad2e215d2af4e29b2254089c43f6eb2e6
|
| 3 |
size 325741672
|