Instructions to use d2j666/competitorDescriptions-ds-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use d2j666/competitorDescriptions-ds-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="d2j666/competitorDescriptions-ds-mini")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("d2j666/competitorDescriptions-ds-mini") model = AutoModelForCausalLM.from_pretrained("d2j666/competitorDescriptions-ds-mini", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use d2j666/competitorDescriptions-ds-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "d2j666/competitorDescriptions-ds-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "d2j666/competitorDescriptions-ds-mini", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/d2j666/competitorDescriptions-ds-mini
- SGLang
How to use d2j666/competitorDescriptions-ds-mini 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 "d2j666/competitorDescriptions-ds-mini" \ --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": "d2j666/competitorDescriptions-ds-mini", "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 "d2j666/competitorDescriptions-ds-mini" \ --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": "d2j666/competitorDescriptions-ds-mini", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use d2j666/competitorDescriptions-ds-mini with Docker Model Runner:
docker model run hf.co/d2j666/competitorDescriptions-ds-mini
Upload model
Browse files- README.md +5 -5
- config.json +1 -1
- tf_model.h5 +2 -2
README.md
CHANGED
|
@@ -14,8 +14,8 @@ probably proofread and complete it, then remove this comment. -->
|
|
| 14 |
|
| 15 |
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
|
| 16 |
It achieves the following results on the evaluation set:
|
| 17 |
-
- Train Loss: 9.
|
| 18 |
-
- Validation Loss: 9.
|
| 19 |
- Epoch: 2
|
| 20 |
|
| 21 |
## Model description
|
|
@@ -42,9 +42,9 @@ The following hyperparameters were used during training:
|
|
| 42 |
|
| 43 |
| Train Loss | Validation Loss | Epoch |
|
| 44 |
|:----------:|:---------------:|:-----:|
|
| 45 |
-
|
|
| 46 |
-
| 9.
|
| 47 |
-
| 9.
|
| 48 |
|
| 49 |
|
| 50 |
### Framework versions
|
|
|
|
| 14 |
|
| 15 |
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
|
| 16 |
It achieves the following results on the evaluation set:
|
| 17 |
+
- Train Loss: 9.7332
|
| 18 |
+
- Validation Loss: 9.6458
|
| 19 |
- Epoch: 2
|
| 20 |
|
| 21 |
## Model description
|
|
|
|
| 42 |
|
| 43 |
| Train Loss | Validation Loss | Epoch |
|
| 44 |
|:----------:|:---------------:|:-----:|
|
| 45 |
+
| 9.9999 | 9.9393 | 0 |
|
| 46 |
+
| 9.8932 | 9.7938 | 1 |
|
| 47 |
+
| 9.7332 | 9.6458 | 2 |
|
| 48 |
|
| 49 |
|
| 50 |
### Framework versions
|
config.json
CHANGED
|
@@ -34,5 +34,5 @@
|
|
| 34 |
},
|
| 35 |
"transformers_version": "4.29.2",
|
| 36 |
"use_cache": true,
|
| 37 |
-
"vocab_size":
|
| 38 |
}
|
|
|
|
| 34 |
},
|
| 35 |
"transformers_version": "4.29.2",
|
| 36 |
"use_cache": true,
|
| 37 |
+
"vocab_size": 19932
|
| 38 |
}
|
tf_model.h5
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:0b374955137d16f617421b3e9838529e5523ba07557e06a44b5ee134ef8719c4
|
| 3 |
+
size 404777040
|