Instructions to use Gauravvaid-shell/osdu_enterprise_llm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Gauravvaid-shell/osdu_enterprise_llm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Gauravvaid-shell/osdu_enterprise_llm")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Gauravvaid-shell/osdu_enterprise_llm") model = AutoModelForCausalLM.from_pretrained("Gauravvaid-shell/osdu_enterprise_llm", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Gauravvaid-shell/osdu_enterprise_llm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Gauravvaid-shell/osdu_enterprise_llm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Gauravvaid-shell/osdu_enterprise_llm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Gauravvaid-shell/osdu_enterprise_llm
- SGLang
How to use Gauravvaid-shell/osdu_enterprise_llm 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 "Gauravvaid-shell/osdu_enterprise_llm" \ --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": "Gauravvaid-shell/osdu_enterprise_llm", "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 "Gauravvaid-shell/osdu_enterprise_llm" \ --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": "Gauravvaid-shell/osdu_enterprise_llm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Gauravvaid-shell/osdu_enterprise_llm with Docker Model Runner:
docker model run hf.co/Gauravvaid-shell/osdu_enterprise_llm
Commit ·
3a6be70
1
Parent(s): 2bd6a5d
End of training
Browse files- README.md +1 -1
- pytorch_model.bin +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -13,7 +13,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 13 |
|
| 14 |
# osdu_enterprise_llm
|
| 15 |
|
| 16 |
-
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on
|
| 17 |
|
| 18 |
## Model description
|
| 19 |
|
|
|
|
| 13 |
|
| 14 |
# osdu_enterprise_llm
|
| 15 |
|
| 16 |
+
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on the None dataset.
|
| 17 |
|
| 18 |
## Model description
|
| 19 |
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 497017693
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:64730d893036291c730e5beffe897610e7d10eb7ba7e7fc0a160f6accf0c8442
|
| 3 |
size 497017693
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4027
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e6d34a0a87f25bfea12185c4476eb4b6a6660854f546279149ce658ddb3abbc
|
| 3 |
size 4027
|