Text Generation
Transformers
Safetensors
Chinese
English
joyai_llm_flash
conversational
custom_code
fp8
Instructions to use jdopensource/JoyAI-LLM-Flash-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jdopensource/JoyAI-LLM-Flash-FP8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jdopensource/JoyAI-LLM-Flash-FP8", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("jdopensource/JoyAI-LLM-Flash-FP8", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use jdopensource/JoyAI-LLM-Flash-FP8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jdopensource/JoyAI-LLM-Flash-FP8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jdopensource/JoyAI-LLM-Flash-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jdopensource/JoyAI-LLM-Flash-FP8
- SGLang
How to use jdopensource/JoyAI-LLM-Flash-FP8 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 "jdopensource/JoyAI-LLM-Flash-FP8" \ --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": "jdopensource/JoyAI-LLM-Flash-FP8", "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 "jdopensource/JoyAI-LLM-Flash-FP8" \ --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": "jdopensource/JoyAI-LLM-Flash-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jdopensource/JoyAI-LLM-Flash-FP8 with Docker Model Runner:
docker model run hf.co/jdopensource/JoyAI-LLM-Flash-FP8
Update README.md
Browse files
README.md
CHANGED
|
@@ -236,18 +236,16 @@ middle"><strong>3.08/22.92</strong></td>
|
|
| 236 |
## 4. Deployment
|
| 237 |
|
| 238 |
> [!Note]
|
| 239 |
-
> You can access JoyAI-LLM Flash API on https://docs.jdcloud.com/cn/jdaip/chat
|
| 240 |
-
>
|
| 241 |
-
> Currently, JoyAI-LLM Flash is recommended to run on the following inference
|
| 242 |
-
> engines:
|
| 243 |
|
| 244 |
* vLLM
|
| 245 |
* SGLang
|
| 246 |
|
| 247 |
The minimum version requirement for `transformers` is `4.57.1`.
|
| 248 |
|
| 249 |
-
Deployment examples can be found in the [Model Deployment
|
| 250 |
-
|
| 251 |
|
| 252 |
|
| 253 |
|
|
|
|
| 236 |
## 4. Deployment
|
| 237 |
|
| 238 |
> [!Note]
|
| 239 |
+
> You can access JoyAI-LLM Flash API on https://docs.jdcloud.com/cn/jdaip/chat and we provide OpenAI/Anthropic-compatible API for you.
|
| 240 |
+
> Currently, JoyAI-LLM-Flash-FP8 is recommended to run on the following inference engines:
|
|
|
|
|
|
|
| 241 |
|
| 242 |
* vLLM
|
| 243 |
* SGLang
|
| 244 |
|
| 245 |
The minimum version requirement for `transformers` is `4.57.1`.
|
| 246 |
|
| 247 |
+
Deployment examples can be found in the [Model Deployment Guide](docs/deploy_guidance.md).
|
| 248 |
+
|
| 249 |
|
| 250 |
|
| 251 |
|