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
Final Update in evaluation metrics
Browse files
README.md
CHANGED
|
@@ -23,6 +23,7 @@ model-index:
|
|
| 23 |
- name: SACREBLEU
|
| 24 |
type: sacrebleu
|
| 25 |
value: 85.979319
|
|
|
|
| 26 |
- task:
|
| 27 |
type: text-generation
|
| 28 |
name: Text Generation
|
|
@@ -34,18 +35,6 @@ model-index:
|
|
| 34 |
- name: CER_SCORE
|
| 35 |
type: cer_score
|
| 36 |
value: 0.137935
|
| 37 |
-
|
| 38 |
-
- task:
|
| 39 |
-
type: text-generation
|
| 40 |
-
name: Text Generation
|
| 41 |
-
dataset:
|
| 42 |
-
name: Custom
|
| 43 |
-
type: Custom
|
| 44 |
-
split: test
|
| 45 |
-
metrics:
|
| 46 |
-
- name: SACREBLEU
|
| 47 |
-
type: sacrebleu
|
| 48 |
-
value: 85.979319
|
| 49 |
|
| 50 |
- task:
|
| 51 |
type: text-generation
|
|
@@ -59,17 +48,6 @@ model-index:
|
|
| 59 |
type: meteor
|
| 60 |
value: 0.903607
|
| 61 |
|
| 62 |
-
- task:
|
| 63 |
-
type: text-generation
|
| 64 |
-
name: Text Generation
|
| 65 |
-
dataset:
|
| 66 |
-
name: Custom
|
| 67 |
-
type: Custom
|
| 68 |
-
split: test
|
| 69 |
-
metrics:
|
| 70 |
-
- name: SACREBLEU
|
| 71 |
-
type: sacrebleu
|
| 72 |
-
value: 85.979319
|
| 73 |
- task:
|
| 74 |
type: text-generation
|
| 75 |
name: Text Generation
|
|
@@ -82,17 +60,6 @@ model-index:
|
|
| 82 |
type: rouge1
|
| 83 |
value: 0.904733
|
| 84 |
|
| 85 |
-
- task:
|
| 86 |
-
type: text-generation
|
| 87 |
-
name: Text Generation
|
| 88 |
-
dataset:
|
| 89 |
-
name: Custom
|
| 90 |
-
type: Custom
|
| 91 |
-
split: test
|
| 92 |
-
metrics:
|
| 93 |
-
- name: SACREBLEU
|
| 94 |
-
type: sacrebleu
|
| 95 |
-
value: 85.979319
|
| 96 |
- task:
|
| 97 |
type: text-generation
|
| 98 |
name: Text Generation
|
|
@@ -105,17 +72,6 @@ model-index:
|
|
| 105 |
type: rouge2
|
| 106 |
value: 0.867881
|
| 107 |
|
| 108 |
-
- task:
|
| 109 |
-
type: text-generation
|
| 110 |
-
name: Text Generation
|
| 111 |
-
dataset:
|
| 112 |
-
name: Custom
|
| 113 |
-
type: Custom
|
| 114 |
-
split: test
|
| 115 |
-
metrics:
|
| 116 |
-
- name: SACREBLEU
|
| 117 |
-
type: sacrebleu
|
| 118 |
-
value: 85.979319
|
| 119 |
- task:
|
| 120 |
type: text-generation
|
| 121 |
name: Text Generation
|
|
@@ -128,17 +84,6 @@ model-index:
|
|
| 128 |
type: rougeL
|
| 129 |
value: 0.905276
|
| 130 |
|
| 131 |
-
- task:
|
| 132 |
-
type: text-generation
|
| 133 |
-
name: Text Generation
|
| 134 |
-
dataset:
|
| 135 |
-
name: Custom
|
| 136 |
-
type: Custom
|
| 137 |
-
split: test
|
| 138 |
-
metrics:
|
| 139 |
-
- name: SACREBLEU
|
| 140 |
-
type: sacrebleu
|
| 141 |
-
value: 85.979319
|
| 142 |
- task:
|
| 143 |
type: text-generation
|
| 144 |
name: Text Generation
|
|
@@ -150,12 +95,6 @@ model-index:
|
|
| 150 |
- name: ROUGELSUM
|
| 151 |
type: rougeLsum
|
| 152 |
value: 0.904084
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
---
|
| 160 |
|
| 161 |
|
|
|
|
| 23 |
- name: SACREBLEU
|
| 24 |
type: sacrebleu
|
| 25 |
value: 85.979319
|
| 26 |
+
|
| 27 |
- task:
|
| 28 |
type: text-generation
|
| 29 |
name: Text Generation
|
|
|
|
| 35 |
- name: CER_SCORE
|
| 36 |
type: cer_score
|
| 37 |
value: 0.137935
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
- task:
|
| 40 |
type: text-generation
|
|
|
|
| 48 |
type: meteor
|
| 49 |
value: 0.903607
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
- task:
|
| 52 |
type: text-generation
|
| 53 |
name: Text Generation
|
|
|
|
| 60 |
type: rouge1
|
| 61 |
value: 0.904733
|
| 62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
- task:
|
| 64 |
type: text-generation
|
| 65 |
name: Text Generation
|
|
|
|
| 72 |
type: rouge2
|
| 73 |
value: 0.867881
|
| 74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
- task:
|
| 76 |
type: text-generation
|
| 77 |
name: Text Generation
|
|
|
|
| 84 |
type: rougeL
|
| 85 |
value: 0.905276
|
| 86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
- task:
|
| 88 |
type: text-generation
|
| 89 |
name: Text Generation
|
|
|
|
| 95 |
- name: ROUGELSUM
|
| 96 |
type: rougeLsum
|
| 97 |
value: 0.904084
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
---
|
| 99 |
|
| 100 |
|