YAPPERTAR-ai-1.0
Collection
Модели искусственного интелекта для генерации текста. Серия 1.0. • 5 items • Updated • 1
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")How to use Fantominsight/YAPPERTAR-ai-5B-1.0 with vLLM:
# 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?"
}
]
}'docker model run hf.co/Fantominsight/YAPPERTAR-ai-5B-1.0
How to use Fantominsight/YAPPERTAR-ai-5B-1.0 with SGLang:
# 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?"
}
]
}'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?"
}
]
}'How to use Fantominsight/YAPPERTAR-ai-5B-1.0 with Docker Model Runner:
docker model run hf.co/Fantominsight/YAPPERTAR-ai-5B-1.0
Это флагманская, быстрая, лёгкая модель
для генерации ткста с пятью миллиардами
параметров на основе модели и её архитектуры
семейства моделей Qwen2 от AlibabaCloud.
По лицензии права принадлежат Alibaba.
Мы команда ФантомИнсайт дообучили Qwen2-5B
под себя. Мы не крадём, мы честно распростроняем
как семейство моделей YAPPERTAR-1.0 на основе **Qwen2**.
Формат GGUF llama.cpp. Запускается в LMStudio, GPT4ALL, Ollama и д.р
с поддержкой GGUF. Требуется минимум 8-12 ГБ ОЗУ или видеопамяти.