Instructions to use rahatneuron/llama3.1_8B_hellaswag_norm_7L with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rahatneuron/llama3.1_8B_hellaswag_norm_7L with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rahatneuron/llama3.1_8B_hellaswag_norm_7L")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rahatneuron/llama3.1_8B_hellaswag_norm_7L") model = AutoModelForCausalLM.from_pretrained("rahatneuron/llama3.1_8B_hellaswag_norm_7L", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rahatneuron/llama3.1_8B_hellaswag_norm_7L with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rahatneuron/llama3.1_8B_hellaswag_norm_7L" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rahatneuron/llama3.1_8B_hellaswag_norm_7L", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rahatneuron/llama3.1_8B_hellaswag_norm_7L
- SGLang
How to use rahatneuron/llama3.1_8B_hellaswag_norm_7L 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 "rahatneuron/llama3.1_8B_hellaswag_norm_7L" \ --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": "rahatneuron/llama3.1_8B_hellaswag_norm_7L", "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 "rahatneuron/llama3.1_8B_hellaswag_norm_7L" \ --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": "rahatneuron/llama3.1_8B_hellaswag_norm_7L", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rahatneuron/llama3.1_8B_hellaswag_norm_7L with Docker Model Runner:
docker model run hf.co/rahatneuron/llama3.1_8B_hellaswag_norm_7L
Download tokenizer.json from rahatneuron/llama3.1_8B_hellaswag_norm_7L: direct link, hf CLI and curl.
- Browser
- Download file 17.2 MB
-
https://huggingface.co/rahatneuron/llama3.1_8B_hellaswag_norm_7L/resolve/main/tokenizer.json
- Command line
-
hf download hf://rahatneuron/llama3.1_8B_hellaswag_norm_7L/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/rahatneuron/llama3.1_8B_hellaswag_norm_7L/resolve/main/tokenizer.json
17.2 MB
- Xet hash:
- 26df0dd2cce370451e39305c9d8759ea1e0116f9aa6cb4325bd5ee41590f89c4
- Size of remote file:
- 17.2 MB
- SHA256:
- bb2501fa8eba4fb3c8aedac0d082a0a83f4e00cc202b0cec96bfc3183d12fc2c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.