Text Generation
Transformers
PyTorch
Safetensors
llama
Generated from Trainer
text-generation-inference
Instructions to use w95/megachat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use w95/megachat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="w95/megachat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("w95/megachat") model = AutoModelForCausalLM.from_pretrained("w95/megachat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use w95/megachat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "w95/megachat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "w95/megachat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/w95/megachat
- SGLang
How to use w95/megachat 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 "w95/megachat" \ --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": "w95/megachat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "w95/megachat" \ --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": "w95/megachat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use w95/megachat with Docker Model Runner:
docker model run hf.co/w95/megachat
Commit History
-
Adding `safetensors` variant of this model (#2)
Verified signature- Adding `safetensors` variant of this model (574ddd1ce2c7eaa7a6f8d13a4a392415e3cf8917) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>1cffd37 -
Adding `safetensors` variant of this model (#2)
Verified signature- Adding `safetensors` variant of this model (574ddd1ce2c7eaa7a6f8d13a4a392415e3cf8917) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>5cff174 -
Adding Evaluation Results (#1)
Verified signature- Adding Evaluation Results (77be1ad6b9b4a9f3534b8d716ff19d3e59b99cbc) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>7473236
-
End of training
789b259 -
Training in progress, epoch 0
136af12 -
Upload tokenizer
9b43e73 -
Upload LlamaForCausalLM
6778af8 -
End of training
fa99aff -
Training in progress, epoch 0
4953a47 -
End of training
8d6a8a6 -
Training in progress, epoch 0
922a16c -
Upload tokenizer
56e5710 -
Upload LlamaForCausalLM
c1fce73 -
End of training
98339d4 -
Training in progress, epoch 0
47e9505 -
Upload tokenizer
a6afa67 -
Upload LlamaForCausalLM
cdcb73f -
End of training
40b96e4 -
Training in progress, epoch 0
121625f -
initial commit
188bf7d