Instructions to use intlsy/opt-175b-hyperparam with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use intlsy/opt-175b-hyperparam with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="intlsy/opt-175b-hyperparam")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("intlsy/opt-175b-hyperparam") model = AutoModelForCausalLM.from_pretrained("intlsy/opt-175b-hyperparam") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use intlsy/opt-175b-hyperparam with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "intlsy/opt-175b-hyperparam" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "intlsy/opt-175b-hyperparam", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/intlsy/opt-175b-hyperparam
- SGLang
How to use intlsy/opt-175b-hyperparam 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 "intlsy/opt-175b-hyperparam" \ --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": "intlsy/opt-175b-hyperparam", "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 "intlsy/opt-175b-hyperparam" \ --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": "intlsy/opt-175b-hyperparam", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use intlsy/opt-175b-hyperparam with Docker Model Runner:
docker model run hf.co/intlsy/opt-175b-hyperparam
Update config.json
Browse files- config.json +2 -0
config.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "intlsy/opt-175b-hyperparam",
|
|
|
|
| 3 |
"activation_dropout": 0.0,
|
| 4 |
"activation_function": "relu",
|
| 5 |
"architectures": [
|
|
@@ -18,6 +19,7 @@
|
|
| 18 |
"model_type": "opt",
|
| 19 |
"num_attention_heads": 96,
|
| 20 |
"num_hidden_layers": 96,
|
|
|
|
| 21 |
"pad_token_id": 1,
|
| 22 |
"prefix": "</s>",
|
| 23 |
"torch_dtype": "float16",
|
|
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "intlsy/opt-175b-hyperparam",
|
| 3 |
+
"_remove_final_layer_norm": false,
|
| 4 |
"activation_dropout": 0.0,
|
| 5 |
"activation_function": "relu",
|
| 6 |
"architectures": [
|
|
|
|
| 19 |
"model_type": "opt",
|
| 20 |
"num_attention_heads": 96,
|
| 21 |
"num_hidden_layers": 96,
|
| 22 |
+
"output_projection": true,
|
| 23 |
"pad_token_id": 1,
|
| 24 |
"prefix": "</s>",
|
| 25 |
"torch_dtype": "float16",
|