Text Generation
Transformers
PyTorch
Safetensors
English
llama
roleplay
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use LTC-AI-Labs/L2-7b-Hermes-Synthia with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LTC-AI-Labs/L2-7b-Hermes-Synthia with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LTC-AI-Labs/L2-7b-Hermes-Synthia") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("LTC-AI-Labs/L2-7b-Hermes-Synthia") model = AutoModelForCausalLM.from_pretrained("LTC-AI-Labs/L2-7b-Hermes-Synthia", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LTC-AI-Labs/L2-7b-Hermes-Synthia with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LTC-AI-Labs/L2-7b-Hermes-Synthia" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LTC-AI-Labs/L2-7b-Hermes-Synthia", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/LTC-AI-Labs/L2-7b-Hermes-Synthia
- SGLang
How to use LTC-AI-Labs/L2-7b-Hermes-Synthia 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 "LTC-AI-Labs/L2-7b-Hermes-Synthia" \ --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": "LTC-AI-Labs/L2-7b-Hermes-Synthia", "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 "LTC-AI-Labs/L2-7b-Hermes-Synthia" \ --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": "LTC-AI-Labs/L2-7b-Hermes-Synthia", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use LTC-AI-Labs/L2-7b-Hermes-Synthia with Docker Model Runner:
docker model run hf.co/LTC-AI-Labs/L2-7b-Hermes-Synthia
Commit History
-
Adding Evaluation Results
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr The purpose of this PR is to add evaluation results from the Open LLM Leaderboard to your model card. If you encounter any issues, please report them to https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr/discussions5209d37
-
Update README.md
7d7333b -
Update README.md
fixed spelling cuz I'm too dumb to check78ea4af
-
Update README.md
24fdec9
-
fixed typo
fd9c268
-
Update README.md
6f9bd33 -
Update README.md
fe41fca -
Update README.md
d3bb518 -
Update README.md
bb93766
-
Upload added_tokens.json
87939ad
-
Delete added_tokens.json
49f4456 -
Create added_tokens.json
3ce5152
-
Create README.md
83c3f66
-
Upload tokenizer
7956da9 -
Upload LlamaForCausalLM
7479955 -
initial commit
ca45de1