Text Generation
Transformers
Safetensors
English
qwen3
text-generation-inference
unsloth
conversational
Instructions to use magnusdtd/VnHalluciCheck-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use magnusdtd/VnHalluciCheck-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="magnusdtd/VnHalluciCheck-SFT") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("magnusdtd/VnHalluciCheck-SFT") model = AutoModelForCausalLM.from_pretrained("magnusdtd/VnHalluciCheck-SFT", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use magnusdtd/VnHalluciCheck-SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "magnusdtd/VnHalluciCheck-SFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "magnusdtd/VnHalluciCheck-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/magnusdtd/VnHalluciCheck-SFT
- SGLang
How to use magnusdtd/VnHalluciCheck-SFT 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 "magnusdtd/VnHalluciCheck-SFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "magnusdtd/VnHalluciCheck-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "magnusdtd/VnHalluciCheck-SFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "magnusdtd/VnHalluciCheck-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use magnusdtd/VnHalluciCheck-SFT with Docker Model Runner:
docker model run hf.co/magnusdtd/VnHalluciCheck-SFT
Download tokenizer.json from magnusdtd/VnHalluciCheck-SFT: direct link, hf CLI and curl.
- Browser
- Download file 11.4 MB
-
https://huggingface.co/magnusdtd/VnHalluciCheck-SFT/resolve/main/tokenizer.json
- Command line
-
hf download hf://magnusdtd/VnHalluciCheck-SFT/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/magnusdtd/VnHalluciCheck-SFT/resolve/main/tokenizer.json
11.4 MB
- Xet hash:
- c4bdf51b291539ee06e6762c6d6f2d7ac1c847a0648f1a61fa855fe4e63c598a
- Size of remote file:
- 11.4 MB
- SHA256:
- 61a3805d0fb971c9845355dea3aac5270f794e50f47d53a9bc1313b224a8e6c5
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.