Text Generation
Transformers
PyTorch
Safetensors
English
llama
Eval Results (legacy)
text-generation-inference
Instructions to use pankajmathur/model_101 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pankajmathur/model_101 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pankajmathur/model_101")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pankajmathur/model_101") model = AutoModelForCausalLM.from_pretrained("pankajmathur/model_101") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use pankajmathur/model_101 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pankajmathur/model_101" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pankajmathur/model_101", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pankajmathur/model_101
- SGLang
How to use pankajmathur/model_101 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 "pankajmathur/model_101" \ --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": "pankajmathur/model_101", "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 "pankajmathur/model_101" \ --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": "pankajmathur/model_101", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pankajmathur/model_101 with Docker Model Runner:
docker model run hf.co/pankajmathur/model_101
Commit ·
e629dbe
1
Parent(s): 425ccb9
596 South 12th Street
Browse files
README.md
CHANGED
|
@@ -15,6 +15,8 @@ datasets:
|
|
| 15 |
|
| 16 |
# model_101
|
| 17 |
|
|
|
|
|
|
|
| 18 |
A hybrid (explain + instruct) style Llama2-70b model, Pleae check examples below for both style prompts, Here is the list of datasets used:
|
| 19 |
|
| 20 |
* Open-Platypus
|
|
@@ -26,6 +28,7 @@ A hybrid (explain + instruct) style Llama2-70b model, Pleae check examples below
|
|
| 26 |
* Alpaca_orca
|
| 27 |
* WizardLM_orca
|
| 28 |
* Dolly-V2_orca
|
|
|
|
| 29 |
|
| 30 |
<br>
|
| 31 |
|
|
|
|
| 15 |
|
| 16 |
# model_101
|
| 17 |
|
| 18 |
+
|
| 19 |
+
|
| 20 |
A hybrid (explain + instruct) style Llama2-70b model, Pleae check examples below for both style prompts, Here is the list of datasets used:
|
| 21 |
|
| 22 |
* Open-Platypus
|
|
|
|
| 28 |
* Alpaca_orca
|
| 29 |
* WizardLM_orca
|
| 30 |
* Dolly-V2_orca
|
| 31 |
+
* Plus more datasets which I am planning to release as open source dataset sometime in future.
|
| 32 |
|
| 33 |
<br>
|
| 34 |
|