Instructions to use CreitinGameplays/Llama-3.1-8B-R1-experimental with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CreitinGameplays/Llama-3.1-8B-R1-experimental with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CreitinGameplays/Llama-3.1-8B-R1-experimental") 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("CreitinGameplays/Llama-3.1-8B-R1-experimental") model = AutoModelForCausalLM.from_pretrained("CreitinGameplays/Llama-3.1-8B-R1-experimental", 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 CreitinGameplays/Llama-3.1-8B-R1-experimental with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CreitinGameplays/Llama-3.1-8B-R1-experimental" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CreitinGameplays/Llama-3.1-8B-R1-experimental", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CreitinGameplays/Llama-3.1-8B-R1-experimental
- SGLang
How to use CreitinGameplays/Llama-3.1-8B-R1-experimental 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 "CreitinGameplays/Llama-3.1-8B-R1-experimental" \ --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": "CreitinGameplays/Llama-3.1-8B-R1-experimental", "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 "CreitinGameplays/Llama-3.1-8B-R1-experimental" \ --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": "CreitinGameplays/Llama-3.1-8B-R1-experimental", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use CreitinGameplays/Llama-3.1-8B-R1-experimental with Docker Model Runner:
docker model run hf.co/CreitinGameplays/Llama-3.1-8B-R1-experimental
Commit History
-
Update generation_config.json
Verified signaturef6b2515
-
Update generation_config.json
Verified signatureecdda0f
-
Update generation_config.json
Verified signaturea188533 -
Update generation_config.json
Verified signature86c471c -
Update generation_config.json
Verified signature122cbe4 -
Update generation_config.json
Verified signature63b7013 -
Update generation_config.json
Verified signature9dbc0b0 -
update (#12)
Verified signature- update (96170bdf2b1ee09bdd164c0f68de6878c2b727be)7b58978 -
Update generation_config.json
Verified signature24d49ea -
update (#11)
Verified signature- update (2af59e003c548d9d1e0187c151a4aa38090f4b97)c63dfb3 -
Update generation_config.json
Verified signature9a677cc -
Update generation_config.json
Verified signature8e6079d
-
fix (#10)
Verified signature- fix (4e026608e0b58ffca1b7bb68c9c8e0729f3eed7e)6c3e26d
-
update again (#7)
Verified signature- update again (65ed3dc4de84340ab9d31d85a4ed588acbb805fa)91cef2c
-
aaaaA (#6)
Verified signature- aaaaA (7c5e08921882cc5721303d10802284382e4ca7d8)597a11b -
again... (#5)
Verified signature- again... (9dd862acbc14aadd730ffca4b3bb968028438566)5265a17 -
update chat template once again (#4)
Verified signature- update chat template once again (41375efdb0f84983e51dffc49bab7969dc9bd80f)0860dc2 -
Update README.md
Verified signatureb668123 -
Update chat template again (#3)
Verified signature- Update chat template again (b606e1a32f289848a73c7a02493fc4a1e6aad517)3d5f374 -
update chat template's system prompt (#2)
Verified signature- update chat template's system prompt (f4cafe90a7f35611e291275968760f04e87240d5)08341f0 -
Update README.md
Verified signature159bb3a -
Create README.md
Verified signatured5c77c2 -
update chat template (#1)
Verified signature- update chat template (ca0aad04f07fa5ca595898ada8726040b35ccf4a)a48ea3c -
Upload folder using huggingface_hub
Verified signature4dfa55e -
initial commit
Verified signaturee1db018