Instructions to use AdoCleanCode/Fakeddit_real_moderate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdoCleanCode/Fakeddit_real_moderate with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AdoCleanCode/Fakeddit_real_moderate")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AdoCleanCode/Fakeddit_real_moderate") model = AutoModelForCausalLM.from_pretrained("AdoCleanCode/Fakeddit_real_moderate") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use AdoCleanCode/Fakeddit_real_moderate with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AdoCleanCode/Fakeddit_real_moderate" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AdoCleanCode/Fakeddit_real_moderate", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AdoCleanCode/Fakeddit_real_moderate
- SGLang
How to use AdoCleanCode/Fakeddit_real_moderate 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 "AdoCleanCode/Fakeddit_real_moderate" \ --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": "AdoCleanCode/Fakeddit_real_moderate", "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 "AdoCleanCode/Fakeddit_real_moderate" \ --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": "AdoCleanCode/Fakeddit_real_moderate", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AdoCleanCode/Fakeddit_real_moderate with Docker Model Runner:
docker model run hf.co/AdoCleanCode/Fakeddit_real_moderate
End of training
Browse files- README.md +8 -8
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -16,7 +16,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
-
- Loss: 4.
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
@@ -47,13 +47,13 @@ The following hyperparameters were used during training:
|
|
| 47 |
|
| 48 |
### Training results
|
| 49 |
|
| 50 |
-
| Training Loss | Epoch | Step
|
| 51 |
-
|:-------------:|:-----:|:-----:|:---------------:|
|
| 52 |
-
|
|
| 53 |
-
| 4.
|
| 54 |
-
| 4.
|
| 55 |
-
| 4.
|
| 56 |
-
| 4.
|
| 57 |
|
| 58 |
|
| 59 |
### Framework versions
|
|
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 4.5085
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
|
|
| 47 |
|
| 48 |
### Training results
|
| 49 |
|
| 50 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 51 |
+
|:-------------:|:-----:|:------:|:---------------:|
|
| 52 |
+
| 4.8308 | 1.0 | 42733 | 4.6468 |
|
| 53 |
+
| 4.6221 | 2.0 | 85466 | 4.5588 |
|
| 54 |
+
| 4.438 | 3.0 | 128199 | 4.5221 |
|
| 55 |
+
| 4.3746 | 4.0 | 170932 | 4.5083 |
|
| 56 |
+
| 4.3017 | 5.0 | 213665 | 4.5085 |
|
| 57 |
|
| 58 |
|
| 59 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 497774208
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc36cf27d31aa9f8e7ed79a44148acb0548e49cff6cab0688e3ba2bfdb424a19
|
| 3 |
size 497774208
|