Instructions to use sr5434/PhysicsLlama-13B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sr5434/PhysicsLlama-13B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sr5434/PhysicsLlama-13B")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sr5434/PhysicsLlama-13B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sr5434/PhysicsLlama-13B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sr5434/PhysicsLlama-13B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sr5434/PhysicsLlama-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sr5434/PhysicsLlama-13B
- SGLang
How to use sr5434/PhysicsLlama-13B 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 "sr5434/PhysicsLlama-13B" \ --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": "sr5434/PhysicsLlama-13B", "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 "sr5434/PhysicsLlama-13B" \ --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": "sr5434/PhysicsLlama-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sr5434/PhysicsLlama-13B with Docker Model Runner:
docker model run hf.co/sr5434/PhysicsLlama-13B
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,18 +1,21 @@
|
|
| 1 |
---
|
| 2 |
base_model: meta-llama/Llama-2-13b-chat-hf
|
| 3 |
-
tags:
|
| 4 |
-
- generated_from_trainer
|
| 5 |
model-index:
|
| 6 |
-
- name:
|
| 7 |
results: []
|
| 8 |
datasets:
|
| 9 |
- ArtifactAI/arxiv-physics-instruct-tune-30k
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
|
| 15 |
-
#
|
| 16 |
|
| 17 |
This model is a LoRA for [meta-llama/Llama-2-13b-chat-hf](https://huggingface.co/meta-llama/Llama-2-13b-chat-hf) on ArtifactAI/arxiv-physics-instruct-tune-30k.
|
| 18 |
|
|
|
|
| 1 |
---
|
| 2 |
base_model: meta-llama/Llama-2-13b-chat-hf
|
|
|
|
|
|
|
| 3 |
model-index:
|
| 4 |
+
- name: PhysicsLlama2-13B
|
| 5 |
results: []
|
| 6 |
datasets:
|
| 7 |
- ArtifactAI/arxiv-physics-instruct-tune-30k
|
| 8 |
+
license: mit
|
| 9 |
+
language:
|
| 10 |
+
- en
|
| 11 |
+
library_name: transformers
|
| 12 |
+
pipeline_tag: text-generation
|
| 13 |
---
|
| 14 |
|
| 15 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 16 |
should probably proofread and complete it, then remove this comment. -->
|
| 17 |
|
| 18 |
+
# Physics LlAMA 2 13B
|
| 19 |
|
| 20 |
This model is a LoRA for [meta-llama/Llama-2-13b-chat-hf](https://huggingface.co/meta-llama/Llama-2-13b-chat-hf) on ArtifactAI/arxiv-physics-instruct-tune-30k.
|
| 21 |
|