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 Settings
- 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:53b408b1d521c924497d78f012971918933b6bbab0c607121e610a57d6ae3b26
|
| 3 |
size 510398013
|
runs/Apr24_11-34-10_9f1cce977355/1682336205.266286/events.out.tfevents.1682336205.9f1cce977355.372.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b4f24f428a04c623245e0e15fb968781948d474211dac9b956c7b974e3d1287
|
| 3 |
+
size 5877
|
runs/Apr24_11-34-10_9f1cce977355/events.out.tfevents.1682336205.9f1cce977355.372.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cec9249c6b47e3b01da3c12173f1bfd6a807f4c422f29a6377c6edb3285708b8
|
| 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:23ee45eb6df8bc8f7442da94e9c4f448120a62a9231d58dd2766709408fd8bc9
|
| 3 |
size 3579
|