Instructions to use TriadParty/Deepsword-34B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TriadParty/Deepsword-34B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TriadParty/Deepsword-34B-Base")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TriadParty/Deepsword-34B-Base") model = AutoModelForCausalLM.from_pretrained("TriadParty/Deepsword-34B-Base") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use TriadParty/Deepsword-34B-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TriadParty/Deepsword-34B-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TriadParty/Deepsword-34B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TriadParty/Deepsword-34B-Base
- SGLang
How to use TriadParty/Deepsword-34B-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 "TriadParty/Deepsword-34B-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": "TriadParty/Deepsword-34B-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 "TriadParty/Deepsword-34B-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": "TriadParty/Deepsword-34B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TriadParty/Deepsword-34B-Base with Docker Model Runner:
docker model run hf.co/TriadParty/Deepsword-34B-Base
Commit ·
c2220cb
1
Parent(s): 6a6db99
Update README.md
Browse files
README.md
CHANGED
|
@@ -13,7 +13,7 @@ Introducing **wrath** in the Seven Deadly Sins series of models.
|
|
| 13 |
- High-quality martial arts novels
|
| 14 |
- Thoughtful cleaning process
|
| 15 |
|
| 16 |
-
This model is designed to serve as the base model in the agent model of the
|
| 17 |
|
| 18 |
### 1. Define Data Quality Dimensions
|
| 19 |
For martial arts novels, high-quality works are typically represented by authors like Jin Yong, Gu Long, and Liang Yusheng. In these novels, the complexity of the plot is a critical factor and is the focal point for script quality.
|
|
|
|
| 13 |
- High-quality martial arts novels
|
| 14 |
- Thoughtful cleaning process
|
| 15 |
|
| 16 |
+
This model is designed to serve as the base model in the agent model of the Live Action Role Playing games. For this purpose, I've collected approximately 10G of martial arts novels, sourced from various novel websites and PT sites. However, this dataset includes a significant amount of duplicate and low-quality content. To address these issues, I've undertaken the following steps:
|
| 17 |
|
| 18 |
### 1. Define Data Quality Dimensions
|
| 19 |
For martial arts novels, high-quality works are typically represented by authors like Jin Yong, Gu Long, and Liang Yusheng. In these novels, the complexity of the plot is a critical factor and is the focal point for script quality.
|