Text Generation
Transformers
Safetensors
PyTorch
Turkish
llama
legal
turkish
llama-3.1
fp8
bfloat16
mixed-precision
question-answering
fsdp-v2
distributed-training
conversational
text-generation-inference
Instructions to use newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8") 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("newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8") model = AutoModelForCausalLM.from_pretrained("newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8
- SGLang
How to use newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8 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 "newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8" \ --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": "newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8", "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 "newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8" \ --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": "newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8 with Docker Model Runner:
docker model run hf.co/newmindai/Llama-3.1-8B-Instruct-w16a8-1node-bs8
Commit History
-
Update README.md
Verified signature0d4d588 -
Update README.md
Verified signature01a8a60 -
Update README.md
Verified signature1ca422c
-
Update README.md
Verified signaturedb5d039
-
Update README.md
Verified signaturec72b899
-
Update README.md
Verified signatured917977 -
Update README.md
Verified signaturef866c63 -
Update README.md
Verified signatureb541c24 -
Update README.md
Verified signature4308ad6 -
Update README.md
Verified signatureaeb3762 -
Update README.md
Verified signaturef61bf6a -
Update README.md
Verified signature4dd66da -
Update README.md
Verified signature15eb99b -
Update README.md
Verified signaturedb25c8d
-
Update README.md
Verified signature30d4df1 -
Update README.md
Verified signature5485876 -
Update README.md
Verified signature584a78b
-
Update training_info.json
Verified signature550c211
-
Update README.md
Verified signature72c11d1 -
Update README.md
Verified signature75da7e1
-
Update README.md
Verified signatureab22926 -
Update README.md
Verified signature1f7fcff -
Update README.md
Verified signature092c69a -
Update README.md
Verified signature60086f6 -
Update README.md
Verified signature0f0d0a5 -
Update README.md
Verified signature160330a -
Update README.md
Verified signature17bca61 -
Update README.md
Verified signaturef9bf16f -
Update README.md
Verified signature87c460d -
Update README.md
Verified signature301867e -
Update README.md
Verified signature7142665 -
Update README.md
Verified signature86a7843 -
Update README.md
Verified signatureccafdcc -
Update README.md
Verified signaturef9e8c5e
-
Update README.md
Verified signature6d043d0 -
Update README.md
Verified signature2459fd6 -
Update README.md
Verified signature5d0ba6c -
Update README.md
Verified signaturea6a6476
-
Update README.md
Verified signatureda1ef85 -
Update README.md
Verified signaturec37912f -
Update README.md
Verified signatureab19eb6 -
Update README.md
Verified signature4b393ca -
Update README.md
Verified signaturee29d876 -
Update README.md
Verified signature9982209 -
Update README.md
Verified signature54bfc48 -
Update README.md
Verified signaturefb995ef
-
Update README.md
Verified signature17b15e2 -
Update README.md
Verified signature8ec6b4d -
Update README.md
Verified signaturefb523fa -
Update README.md
Verified signature8702187