Instructions to use Fantominsight/YAPPERTAR-ai-5B-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Fantominsight/YAPPERTAR-ai-5B-1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Fantominsight/YAPPERTAR-ai-5B-1.0") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Fantominsight/YAPPERTAR-ai-5B-1.0", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Fantominsight/YAPPERTAR-ai-5B-1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Fantominsight/YAPPERTAR-ai-5B-1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Fantominsight/YAPPERTAR-ai-5B-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Fantominsight/YAPPERTAR-ai-5B-1.0
- SGLang
How to use Fantominsight/YAPPERTAR-ai-5B-1.0 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 "Fantominsight/YAPPERTAR-ai-5B-1.0" \ --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": "Fantominsight/YAPPERTAR-ai-5B-1.0", "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 "Fantominsight/YAPPERTAR-ai-5B-1.0" \ --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": "Fantominsight/YAPPERTAR-ai-5B-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Fantominsight/YAPPERTAR-ai-5B-1.0 with Docker Model Runner:
docker model run hf.co/Fantominsight/YAPPERTAR-ai-5B-1.0
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,9 +1,15 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
language:
|
| 4 |
- ru
|
| 5 |
- en
|
| 6 |
- zh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
pipeline_tag: text-generation
|
| 8 |
library_name: transformers
|
| 9 |
tags:
|
|
@@ -17,5 +23,5 @@ datasets:
|
|
| 17 |
- MultiTrainer56-108M
|
| 18 |
base_model:
|
| 19 |
- YAPPERTAR_ai_based_on_miscrosoft_phi4
|
| 20 |
-
text:
|
| 21 |
---
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- ru
|
| 5 |
- en
|
| 6 |
- zh
|
| 7 |
+
- pt
|
| 8 |
+
- es
|
| 9 |
+
- el
|
| 10 |
+
- ka
|
| 11 |
+
- uk
|
| 12 |
+
- ja
|
| 13 |
pipeline_tag: text-generation
|
| 14 |
library_name: transformers
|
| 15 |
tags:
|
|
|
|
| 23 |
- MultiTrainer56-108M
|
| 24 |
base_model:
|
| 25 |
- YAPPERTAR_ai_based_on_miscrosoft_phi4
|
| 26 |
+
text: null
|
| 27 |
---
|