Text Generation
Transformers
Safetensors
English
phi
finance
legal
custom_code
text-generation-inference
Instructions to use dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli
- SGLang
How to use dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli 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 "dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli" \ --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": "dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli", "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 "dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli" \ --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": "dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli with Docker Model Runner:
docker model run hf.co/dataeaze/dataeaze-RegLLM-microsoft_phi_2-dzcompli
Update to copilot screenshot size
Browse files
README.md
CHANGED
|
@@ -111,6 +111,8 @@ They should also be able to work effectively with other departments and have a g
|
|
| 111 |
<td>
|
| 112 |
<img src="chatgpt_cco_1.png" alt="gpt-4-respnse" width="750" />
|
| 113 |
</td>
|
|
|
|
|
|
|
| 114 |
<td>
|
| 115 |
<img src="chatgpt_cco_2.png" alt="gpt-4-respnse" width="750" />
|
| 116 |
</td>
|
|
|
|
| 111 |
<td>
|
| 112 |
<img src="chatgpt_cco_1.png" alt="gpt-4-respnse" width="750" />
|
| 113 |
</td>
|
| 114 |
+
</tr>
|
| 115 |
+
<tr>
|
| 116 |
<td>
|
| 117 |
<img src="chatgpt_cco_2.png" alt="gpt-4-respnse" width="750" />
|
| 118 |
</td>
|