Instructions to use jumelet/test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jumelet/test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jumelet/test")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jumelet/test") model = AutoModelForCausalLM.from_pretrained("jumelet/test") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jumelet/test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jumelet/test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jumelet/test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jumelet/test
- SGLang
How to use jumelet/test 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 "jumelet/test" \ --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": "jumelet/test", "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 "jumelet/test" \ --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": "jumelet/test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jumelet/test with Docker Model Runner:
docker model run hf.co/jumelet/test
Training in progress, step 15
Browse files- config.json +3 -3
- pytorch_model.bin +2 -2
- tokenizer.json +35 -35
- training_args.bin +2 -2
config.json
CHANGED
|
@@ -19,10 +19,10 @@
|
|
| 19 |
"layer_norm_epsilon": 1e-05,
|
| 20 |
"model_type": "gpt2",
|
| 21 |
"n_ctx": 1024,
|
| 22 |
-
"n_embd":
|
| 23 |
-
"n_head":
|
| 24 |
"n_inner": null,
|
| 25 |
-
"n_layer":
|
| 26 |
"n_positions": 40,
|
| 27 |
"reorder_and_upcast_attn": false,
|
| 28 |
"resid_pdrop": 0.1,
|
|
|
|
| 19 |
"layer_norm_epsilon": 1e-05,
|
| 20 |
"model_type": "gpt2",
|
| 21 |
"n_ctx": 1024,
|
| 22 |
+
"n_embd": 128,
|
| 23 |
+
"n_head": 8,
|
| 24 |
"n_inner": null,
|
| 25 |
+
"n_layer": 8,
|
| 26 |
"n_positions": 40,
|
| 27 |
"reorder_and_upcast_attn": false,
|
| 28 |
"resid_pdrop": 0.1,
|
pytorch_model.bin
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:c8234a23638b22f6c00dd1984f4062eece90b1f452aa56e788ca5ffa62d6dac2
|
| 3 |
+
size 6422298
|
tokenizer.json
CHANGED
|
@@ -95,47 +95,47 @@
|
|
| 95 |
"<mask>": 2,
|
| 96 |
"<bos>": 3,
|
| 97 |
".": 4,
|
| 98 |
-
"
|
| 99 |
-
"
|
| 100 |
-
"
|
| 101 |
",": 8,
|
| 102 |
-
"
|
| 103 |
"here": 10,
|
| 104 |
"in": 11,
|
| 105 |
"Bible": 12,
|
| 106 |
"he": 13,
|
| 107 |
"meant": 14,
|
| 108 |
-
"
|
| 109 |
-
"
|
| 110 |
-
"
|
| 111 |
-
"
|
| 112 |
-
"
|
| 113 |
-
"
|
| 114 |
-
"
|
| 115 |
-
"
|
| 116 |
-
"
|
| 117 |
-
"
|
| 118 |
-
"
|
| 119 |
-
"
|
| 120 |
-
"
|
| 121 |
-
"
|
| 122 |
-
"
|
| 123 |
-
"
|
| 124 |
-
"
|
| 125 |
-
"
|
| 126 |
-
"
|
| 127 |
-
"
|
| 128 |
-
"
|
| 129 |
-
"
|
| 130 |
-
"
|
| 131 |
-
"
|
| 132 |
-
"
|
| 133 |
-
"
|
| 134 |
-
"
|
| 135 |
-
"
|
| 136 |
-
"
|
| 137 |
-
"
|
| 138 |
-
"
|
| 139 |
},
|
| 140 |
"unk_token": "<unk>"
|
| 141 |
}
|
|
|
|
| 95 |
"<mask>": 2,
|
| 96 |
"<bos>": 3,
|
| 97 |
".": 4,
|
| 98 |
+
"the": 5,
|
| 99 |
+
"was": 6,
|
| 100 |
+
"it": 7,
|
| 101 |
",": 8,
|
| 102 |
+
"and": 9,
|
| 103 |
"here": 10,
|
| 104 |
"in": 11,
|
| 105 |
"Bible": 12,
|
| 106 |
"he": 13,
|
| 107 |
"meant": 14,
|
| 108 |
+
"find": 15,
|
| 109 |
+
"He": 16,
|
| 110 |
+
"now": 17,
|
| 111 |
+
"should": 18,
|
| 112 |
+
"But": 19,
|
| 113 |
+
"Oh": 20,
|
| 114 |
+
"class": 21,
|
| 115 |
+
"there": 22,
|
| 116 |
+
"cows": 23,
|
| 117 |
+
"really": 24,
|
| 118 |
+
"knew": 25,
|
| 119 |
+
"mattered": 26,
|
| 120 |
+
"to": 27,
|
| 121 |
+
"intended": 28,
|
| 122 |
+
"quite": 29,
|
| 123 |
+
":": 30,
|
| 124 |
+
"leave": 31,
|
| 125 |
+
"virtue": 32,
|
| 126 |
+
"that": 33,
|
| 127 |
+
"boy": 34,
|
| 128 |
+
"not": 35,
|
| 129 |
+
"Today": 36,
|
| 130 |
+
"Tuesday": 37,
|
| 131 |
+
"Because": 38,
|
| 132 |
+
"sure": 39,
|
| 133 |
+
"of": 40,
|
| 134 |
+
"world": 41,
|
| 135 |
+
"ditch": 42,
|
| 136 |
+
"by": 43,
|
| 137 |
+
"none": 44,
|
| 138 |
+
"justice": 45
|
| 139 |
},
|
| 140 |
"unk_token": "<unk>"
|
| 141 |
}
|
training_args.bin
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:d38b0aacc24806ab5e765c4c19f8d1f21d551adc019572e9aaee2880c5a9dc1c
|
| 3 |
+
size 4472
|