Instructions to use Xilixmeaty40/vfdfdfdfdfd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Xilixmeaty40/vfdfdfdfdfd with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Xilixmeaty40/vfdfdfdfdfd")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Xilixmeaty40/vfdfdfdfdfd") model = AutoModelForCausalLM.from_pretrained("Xilixmeaty40/vfdfdfdfdfd", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Xilixmeaty40/vfdfdfdfdfd with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xilixmeaty40/vfdfdfdfdfd" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Xilixmeaty40/vfdfdfdfdfd", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Xilixmeaty40/vfdfdfdfdfd
- SGLang
How to use Xilixmeaty40/vfdfdfdfdfd 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 "Xilixmeaty40/vfdfdfdfdfd" \ --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": "Xilixmeaty40/vfdfdfdfdfd", "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 "Xilixmeaty40/vfdfdfdfdfd" \ --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": "Xilixmeaty40/vfdfdfdfdfd", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Xilixmeaty40/vfdfdfdfdfd with Docker Model Runner:
docker model run hf.co/Xilixmeaty40/vfdfdfdfdfd
Update config.json
Browse files- config.json +8 -8
config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"model_type": "
|
| 3 |
-
"task": "
|
| 4 |
-
"pipeline_tag": "
|
| 5 |
"tokenizer_class": "AutoTokenizer",
|
| 6 |
"model_class": "AutoModel",
|
| 7 |
"config": {
|
|
@@ -46,7 +46,7 @@
|
|
| 46 |
"suppress_tokens": null,
|
| 47 |
"begin_suppress_tokens": null,
|
| 48 |
"architectures": [
|
| 49 |
-
"
|
| 50 |
],
|
| 51 |
"finetuning_task": null,
|
| 52 |
"id2label": {
|
|
@@ -68,7 +68,7 @@
|
|
| 68 |
"problem_type": null,
|
| 69 |
"_name_or_path": "Xilixmeaty40/sad",
|
| 70 |
"transformers_version": "4.45.0.dev0",
|
| 71 |
-
"model_type": "
|
| 72 |
"vocab_size": 30522,
|
| 73 |
"hidden_size": 768,
|
| 74 |
"num_hidden_layers": 12,
|
|
@@ -86,9 +86,9 @@
|
|
| 86 |
"classifier_dropout": null
|
| 87 |
},
|
| 88 |
"inferred_config": {
|
| 89 |
-
"model_type": "
|
| 90 |
-
"task": "
|
| 91 |
-
"pipeline_tag": "
|
| 92 |
"tokenizer_class": "AutoTokenizer",
|
| 93 |
"model_class": "AutoModel"
|
| 94 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"model_type": "auto-detect",
|
| 3 |
+
"task": "auto-detect",
|
| 4 |
+
"pipeline_tag": "auto-detect",
|
| 5 |
"tokenizer_class": "AutoTokenizer",
|
| 6 |
"model_class": "AutoModel",
|
| 7 |
"config": {
|
|
|
|
| 46 |
"suppress_tokens": null,
|
| 47 |
"begin_suppress_tokens": null,
|
| 48 |
"architectures": [
|
| 49 |
+
"gpt2"
|
| 50 |
],
|
| 51 |
"finetuning_task": null,
|
| 52 |
"id2label": {
|
|
|
|
| 68 |
"problem_type": null,
|
| 69 |
"_name_or_path": "Xilixmeaty40/sad",
|
| 70 |
"transformers_version": "4.45.0.dev0",
|
| 71 |
+
"model_type": "auto-detect",
|
| 72 |
"vocab_size": 30522,
|
| 73 |
"hidden_size": 768,
|
| 74 |
"num_hidden_layers": 12,
|
|
|
|
| 86 |
"classifier_dropout": null
|
| 87 |
},
|
| 88 |
"inferred_config": {
|
| 89 |
+
"model_type": "auto-detect",
|
| 90 |
+
"task": "auto-detect",
|
| 91 |
+
"pipeline_tag": "auto-detect",
|
| 92 |
"tokenizer_class": "AutoTokenizer",
|
| 93 |
"model_class": "AutoModel"
|
| 94 |
}
|