Text Generation
Transformers
PyTorch
Safetensors
English
llama
llama-3
Mixtral
instruct
finetune
chatml
DPO
RLHF
gpt4
distillation
text-generation-inference
Instructions to use grimjim/llama-3-aaditya-OpenBioLLM-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use grimjim/llama-3-aaditya-OpenBioLLM-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="grimjim/llama-3-aaditya-OpenBioLLM-8B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("grimjim/llama-3-aaditya-OpenBioLLM-8B") model = AutoModelForCausalLM.from_pretrained("grimjim/llama-3-aaditya-OpenBioLLM-8B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use grimjim/llama-3-aaditya-OpenBioLLM-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "grimjim/llama-3-aaditya-OpenBioLLM-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "grimjim/llama-3-aaditya-OpenBioLLM-8B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/grimjim/llama-3-aaditya-OpenBioLLM-8B
- SGLang
How to use grimjim/llama-3-aaditya-OpenBioLLM-8B 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 "grimjim/llama-3-aaditya-OpenBioLLM-8B" \ --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": "grimjim/llama-3-aaditya-OpenBioLLM-8B", "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 "grimjim/llama-3-aaditya-OpenBioLLM-8B" \ --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": "grimjim/llama-3-aaditya-OpenBioLLM-8B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use grimjim/llama-3-aaditya-OpenBioLLM-8B with Docker Model Runner:
docker model run hf.co/grimjim/llama-3-aaditya-OpenBioLLM-8B
Removed pickles
Browse files
pytorch_model-00001-of-00004.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:71c87d8d75f6b9b493984cfb87b2cabbc6116262cd5190fdb53afbcaeeee7cbe
|
| 3 |
-
size 4976718466
|
|
|
|
|
|
|
|
|
|
|
|
pytorch_model-00002-of-00004.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:426a0da036ec88f4f3dbd2e66daa866aaf24b41d8c43f3419d840a62a98b6077
|
| 3 |
-
size 4999827718
|
|
|
|
|
|
|
|
|
|
|
|
pytorch_model-00003-of-00004.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a5236d89be7c41b32672bfe15d67719e8d85f7e92d98737990a04736463ca415
|
| 3 |
-
size 4915940170
|
|
|
|
|
|
|
|
|
|
|
|
pytorch_model-00004-of-00004.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c871e0a4bfd6abf25ee8cbd5e2cf174e1dfa5a28fb876ae8e9d78f1e812b3316
|
| 3 |
-
size 1168140873
|
|
|
|
|
|
|
|
|
|
|
|