Text Generation
Transformers
TensorBoard
Safetensors
English
llama
text-generation-inference
unsloth
trl
conversational
Eval Results (legacy)
Instructions to use roger33303/llama3.2-3b-Instruct-Finetune-website-QnA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use roger33303/llama3.2-3b-Instruct-Finetune-website-QnA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="roger33303/llama3.2-3b-Instruct-Finetune-website-QnA") 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("roger33303/llama3.2-3b-Instruct-Finetune-website-QnA") model = AutoModelForCausalLM.from_pretrained("roger33303/llama3.2-3b-Instruct-Finetune-website-QnA", 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 roger33303/llama3.2-3b-Instruct-Finetune-website-QnA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "roger33303/llama3.2-3b-Instruct-Finetune-website-QnA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "roger33303/llama3.2-3b-Instruct-Finetune-website-QnA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/roger33303/llama3.2-3b-Instruct-Finetune-website-QnA
- SGLang
How to use roger33303/llama3.2-3b-Instruct-Finetune-website-QnA 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 "roger33303/llama3.2-3b-Instruct-Finetune-website-QnA" \ --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": "roger33303/llama3.2-3b-Instruct-Finetune-website-QnA", "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 "roger33303/llama3.2-3b-Instruct-Finetune-website-QnA" \ --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": "roger33303/llama3.2-3b-Instruct-Finetune-website-QnA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use roger33303/llama3.2-3b-Instruct-Finetune-website-QnA with Docker Model Runner:
docker model run hf.co/roger33303/llama3.2-3b-Instruct-Finetune-website-QnA
(Trained with Unsloth)
Browse files- logs/events.out.tfevents.1731307247.e196698fa020.1102.2 +3 -0
- logs/events.out.tfevents.1731307344.e196698fa020.1102.5 +3 -0
- logs/train/events.out.tfevents.1731307243.e196698fa020.1102.0 +3 -0
- logs/train/events.out.tfevents.1731307335.e196698fa020.1102.3 +3 -0
- logs/val/events.out.tfevents.1731307243.e196698fa020.1102.1 +3 -0
- logs/val/events.out.tfevents.1731307335.e196698fa020.1102.4 +3 -0
logs/events.out.tfevents.1731307247.e196698fa020.1102.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f011d6b37cd30640ac186f817164b04fcd39ab0159009cdc48ed37cd83170221
|
| 3 |
+
size 6057
|
logs/events.out.tfevents.1731307344.e196698fa020.1102.5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6a2669cb7bbee1d7f5cfd5b190c97de19c87ee116b61e76e912460acd7ca0dc
|
| 3 |
+
size 33015
|
logs/train/events.out.tfevents.1731307243.e196698fa020.1102.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f6d4e992467c9165d96060cdf6573cbaa25cef2a088ee8a98894afa7ca1ba27
|
| 3 |
+
size 88
|
logs/train/events.out.tfevents.1731307335.e196698fa020.1102.3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f56226b02f164f520d6595c8aef167083186f54ae30027da403b5c9ede5922d
|
| 3 |
+
size 15200
|
logs/val/events.out.tfevents.1731307243.e196698fa020.1102.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e99816ffdab1881ce4f7a03375a6a5cf80f89fd448869481d85daa0110c9143f
|
| 3 |
+
size 88
|
logs/val/events.out.tfevents.1731307335.e196698fa020.1102.4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84a70db37c6721d7c6df521136cfa7279787c7df763abc9d63dd4e3519a542d7
|
| 3 |
+
size 1348
|