HuggingFaceH4/ultrachat_200k
Viewer • Updated • 515k • 72.7k • 709
How to use OEvortex/HelpingAI-Lite-1.5T with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="OEvortex/HelpingAI-Lite-1.5T") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("OEvortex/HelpingAI-Lite-1.5T")
model = AutoModelForCausalLM.from_pretrained("OEvortex/HelpingAI-Lite-1.5T")How to use OEvortex/HelpingAI-Lite-1.5T with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "OEvortex/HelpingAI-Lite-1.5T"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "OEvortex/HelpingAI-Lite-1.5T",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/OEvortex/HelpingAI-Lite-1.5T
How to use OEvortex/HelpingAI-Lite-1.5T with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "OEvortex/HelpingAI-Lite-1.5T" \
--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": "OEvortex/HelpingAI-Lite-1.5T",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "OEvortex/HelpingAI-Lite-1.5T" \
--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": "OEvortex/HelpingAI-Lite-1.5T",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use OEvortex/HelpingAI-Lite-1.5T with Docker Model Runner:
docker model run hf.co/OEvortex/HelpingAI-Lite-1.5T
🌟 HelpingAI-Lite-1.5T Model Card 🌟
📊 Datasets used:
🗣️ Language:
🔒 License:
HelpingAI Simplified Universal License (HSUL)
🧠 Model Overview: HelpingAI-Lite-1.5T is an advanced version of the HelpingAI-Lite model, trained on a vast corpus of 1.5 trillion tokens. This extensive training data enables the model to provide precise and insightful responses, particularly for coding tasks.
🔧 Usage Example:
from transformers import pipeline
from accelerate import Accelerator
# Initialize the accelerator
accelerator = Accelerator()
# Initialize the pipeline
pipe = pipeline("text-generation", model="OEvortex/HelpingAI-Lite-1.5T", device=accelerator.device)
# Define the messages
messages = [
{
"role": "system",
"content": "You are a chatbot who can be a teacher",
},
{
"role": "user",
"content": "Explain me working of AI.",
},
]
# Prepare the prompt
prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
# Generate predictions
outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
# Print the generated text
print(outputs[0]["generated_text"])