Instructions to use yhavinga/gpt-neo-125M-dutch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yhavinga/gpt-neo-125M-dutch with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yhavinga/gpt-neo-125M-dutch")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("yhavinga/gpt-neo-125M-dutch") model = AutoModelForMultimodalLM.from_pretrained("yhavinga/gpt-neo-125M-dutch") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yhavinga/gpt-neo-125M-dutch with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yhavinga/gpt-neo-125M-dutch" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yhavinga/gpt-neo-125M-dutch", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/yhavinga/gpt-neo-125M-dutch
- SGLang
How to use yhavinga/gpt-neo-125M-dutch 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 "yhavinga/gpt-neo-125M-dutch" \ --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": "yhavinga/gpt-neo-125M-dutch", "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 "yhavinga/gpt-neo-125M-dutch" \ --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": "yhavinga/gpt-neo-125M-dutch", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use yhavinga/gpt-neo-125M-dutch with Docker Model Runner:
docker model run hf.co/yhavinga/gpt-neo-125M-dutch
Saving weights and log at step 150000
Browse files
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"activation_function": "gelu_new",
|
| 4 |
"architectures": [
|
| 5 |
"GPTNeoForCausalLM"
|
|
@@ -46,6 +46,7 @@
|
|
| 46 |
"summary_proj_to_labels": true,
|
| 47 |
"summary_type": "cls_index",
|
| 48 |
"summary_use_proj": true,
|
|
|
|
| 49 |
"transformers_version": "4.13.0",
|
| 50 |
"use_cache": true,
|
| 51 |
"vocab_size": 50257,
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": ".",
|
| 3 |
"activation_function": "gelu_new",
|
| 4 |
"architectures": [
|
| 5 |
"GPTNeoForCausalLM"
|
|
|
|
| 46 |
"summary_proj_to_labels": true,
|
| 47 |
"summary_type": "cls_index",
|
| 48 |
"summary_use_proj": true,
|
| 49 |
+
"torch_dtype": "float32",
|
| 50 |
"transformers_version": "4.13.0",
|
| 51 |
"use_cache": true,
|
| 52 |
"vocab_size": 50257,
|
flax_model.msgpack
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5301955d8ac14e97de94a79bdf99064e9359af712d0c1c56fb35d0819fdfd676
|
| 3 |
+
size 500800120
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae07c9cf8bfdbf25cf4bbbdc712c1bbafc9c53071d88725c0f1e42f15325a193
|
| 3 |
+
size 551192465
|
runs/events.out.tfevents.1641165068.t1v-n-d7290f31-w-0.30243.0.v2
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b744f69290d42d941df38ffe35b17fab3cc794951ace974cadb2c31f25b38443
|
| 3 |
+
size 22570467
|