Text Generation
Transformers
PyTorch
TensorBoard
gpt2
Generated from Trainer
text-generation-inference
Instructions to use sjadhav3/halucination_free with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sjadhav3/halucination_free with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sjadhav3/halucination_free")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sjadhav3/halucination_free") model = AutoModelForCausalLM.from_pretrained("sjadhav3/halucination_free") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use sjadhav3/halucination_free with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sjadhav3/halucination_free" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sjadhav3/halucination_free", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sjadhav3/halucination_free
- SGLang
How to use sjadhav3/halucination_free 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 "sjadhav3/halucination_free" \ --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": "sjadhav3/halucination_free", "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 "sjadhav3/halucination_free" \ --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": "sjadhav3/halucination_free", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sjadhav3/halucination_free with Docker Model Runner:
docker model run hf.co/sjadhav3/halucination_free
End of training
Browse files
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 510398013
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9125becea93d823609e436956affa0932e0dbaf4608296caaea44f438c98cf6d
|
| 3 |
size 510398013
|
runs/Apr17_18-15-00_76b716720ad9/1681755424.0069582/events.out.tfevents.1681755424.76b716720ad9.618.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a54890c40ee3d86328d607b91e3180bfe8f250cc7af41d6f05f904b2373c0cc
|
| 3 |
+
size 5877
|
runs/Apr17_18-15-00_76b716720ad9/events.out.tfevents.1681755423.76b716720ad9.618.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:11407cd7133d3ddc0b7c4bde6268b155bdfad17e21a07881fd3423357712bc0b
|
| 3 |
+
size 4584
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3579
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8c2abfe5ff73d90c4e8d81a5c57b7dffa8707d791e5f6ed40de21c59968aff7
|
| 3 |
size 3579
|