Text Generation
Transformers
PyTorch
English
llama
llama-3
Mixtral
instruct
finetune
chatml
DPO
RLHF
gpt4
distillation
heathcare
medical
clinical
med
lifescience
Pharmaceutical
Pharma
conversational
text-generation-inference
Instructions to use aaditya/Llama3-OpenBioLLM-70B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aaditya/Llama3-OpenBioLLM-70B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aaditya/Llama3-OpenBioLLM-70B") 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("aaditya/Llama3-OpenBioLLM-70B") model = AutoModelForCausalLM.from_pretrained("aaditya/Llama3-OpenBioLLM-70B", 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 aaditya/Llama3-OpenBioLLM-70B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aaditya/Llama3-OpenBioLLM-70B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aaditya/Llama3-OpenBioLLM-70B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aaditya/Llama3-OpenBioLLM-70B
- SGLang
How to use aaditya/Llama3-OpenBioLLM-70B 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 "aaditya/Llama3-OpenBioLLM-70B" \ --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": "aaditya/Llama3-OpenBioLLM-70B", "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 "aaditya/Llama3-OpenBioLLM-70B" \ --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": "aaditya/Llama3-OpenBioLLM-70B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use aaditya/Llama3-OpenBioLLM-70B with Docker Model Runner:
docker model run hf.co/aaditya/Llama3-OpenBioLLM-70B
Commit History
-
Update README.md
Verified signature7ad17ef
-
Update README.md
Verified signature5f79dea
-
Update README.md
Verified signaturec9414c7 -
Update README.md
Verified signature2560a0f -
Update README.md
Verified signature4f89ff1 -
Update README.md
Verified signature5290391 -
Update README.md
Verified signaturebb4f6c0 -
Update README.md
Verified signature25d48c7
-
Update README.md
Verified signaturec77c689 -
Update README.md
Verified signature7f2419d -
Update README.md
Verified signature1096508 -
Update README.md
Verified signature6ba85b3 -
Update README.md
Verified signature2350e39 -
Update README.md
Verified signature616f15b -
Update README.md
Verified signature20a9992 -
Update README.md
Verified signature63f32f0 -
Update README.md
Verified signature9f8d38d -
Update README.md
Verified signature57e5557 -
Update README.md
Verified signatured046ce3 -
Update README.md
Verified signaturea6cdcb6 -
Update README.md
Verified signature9a14a59 -
Update README.md
Verified signaturea9a7e65 -
Create README.md
Verified signature129852c
-
Create LICENSE
Verified signature25f9c32 -
Delete data.txt
Verified signature7540e58 -
Upload folder using huggingface_hub
Verified signaturef2d9168 -
initial commit
Verified signatureea6f5c9