Instructions to use SimuIation/CDM_Digital_Navigator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SimuIation/CDM_Digital_Navigator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SimuIation/CDM_Digital_Navigator")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SimuIation/CDM_Digital_Navigator") model = AutoModelForCausalLM.from_pretrained("SimuIation/CDM_Digital_Navigator") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use SimuIation/CDM_Digital_Navigator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SimuIation/CDM_Digital_Navigator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SimuIation/CDM_Digital_Navigator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SimuIation/CDM_Digital_Navigator
- SGLang
How to use SimuIation/CDM_Digital_Navigator 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 "SimuIation/CDM_Digital_Navigator" \ --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": "SimuIation/CDM_Digital_Navigator", "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 "SimuIation/CDM_Digital_Navigator" \ --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": "SimuIation/CDM_Digital_Navigator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SimuIation/CDM_Digital_Navigator with Docker Model Runner:
docker model run hf.co/SimuIation/CDM_Digital_Navigator
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,7 +19,7 @@ This modelcard aims to be a base template for new models. It has been generated
|
|
| 19 |
|
| 20 |
### Model Description
|
| 21 |
|
| 22 |
-
The Digital Navigator model is designed to assist users by generating natural language responses to input queries. It is a fine-tuned GPT-2 model, customized for providing
|
| 23 |
|
| 24 |
- **Developed by:** Papagiannakis Panagiotis
|
| 25 |
- **Model type:** GPT-2 (Generative Pre-trained Transformer 2)
|
|
@@ -31,11 +31,7 @@ The Digital Navigator model is designed to assist users by generating natural la
|
|
| 31 |
|
| 32 |
### Direct Use
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
1. Conversational AI
|
| 37 |
-
2. Customer Support
|
| 38 |
-
3. Virtual Assistance
|
| 39 |
|
| 40 |
### Out-of-Scope Use
|
| 41 |
|
|
@@ -77,20 +73,9 @@ The model was trained using standard procedures for fine-tuning GPT-2 models.
|
|
| 77 |
- Block Size: 128
|
| 78 |
|
| 79 |
|
| 80 |
-
## Evaluation
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
[More Information Needed]
|
| 84 |
-
|
| 85 |
-
#### Factors
|
| 86 |
-
|
| 87 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 88 |
-
|
| 89 |
-
[More Information Needed]
|
| 90 |
-
|
| 91 |
#### Metrics
|
| 92 |
|
| 93 |
-
The model was evaluated using metrics like BLEU score for language quality, accuracy for factual correctness,
|
| 94 |
|
| 95 |
### Results
|
| 96 |
|
|
@@ -110,7 +95,7 @@ Due to the high complexity and small variety of the data:
|
|
| 110 |
## Model Examination
|
| 111 |
|
| 112 |
|
| 113 |
-
- **Hardware Type:**
|
| 114 |
- **Hours used:** 18 minutes and 47 seconds
|
| 115 |
- **Cloud Provider:** Google Collab
|
| 116 |
|
|
|
|
| 19 |
|
| 20 |
### Model Description
|
| 21 |
|
| 22 |
+
The Digital Navigator model is designed to assist users by generating natural language responses to input queries. It is a fine-tuned GPT-2 model, customized for providing assistanse to the visitors of Communication and Digital Media Department's website: https://cdm.uowm.gr/en/index/.
|
| 23 |
|
| 24 |
- **Developed by:** Papagiannakis Panagiotis
|
| 25 |
- **Model type:** GPT-2 (Generative Pre-trained Transformer 2)
|
|
|
|
| 31 |
|
| 32 |
### Direct Use
|
| 33 |
|
| 34 |
+
Users do not have much of a choice but only use it for experimental and educational purposes, since the model was fine-tuned for specific answers and question related to the Department of Communication and Digital Media website: https://cdm.uowm.gr/en/index/.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
### Out-of-Scope Use
|
| 37 |
|
|
|
|
| 73 |
- Block Size: 128
|
| 74 |
|
| 75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
#### Metrics
|
| 77 |
|
| 78 |
+
The model was evaluated using metrics like BLEU score for language quality, accuracy for factual correctness, precision for the accuracy of positive predictions, recall for the ability to find all relevant instances, and F1 score to balance precision and recall.
|
| 79 |
|
| 80 |
### Results
|
| 81 |
|
|
|
|
| 95 |
## Model Examination
|
| 96 |
|
| 97 |
|
| 98 |
+
- **Hardware Type:** NVIDIA T4
|
| 99 |
- **Hours used:** 18 minutes and 47 seconds
|
| 100 |
- **Cloud Provider:** Google Collab
|
| 101 |
|