Text Generation
Transformers
TensorBoard
Safetensors
gemma
alignment-handbook
trl
sft
Generated from Trainer
conversational
text-generation-inference
Instructions to use terry69/feedback_gemma with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use terry69/feedback_gemma with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="terry69/feedback_gemma") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("terry69/feedback_gemma") model = AutoModelForCausalLM.from_pretrained("terry69/feedback_gemma") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use terry69/feedback_gemma with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "terry69/feedback_gemma" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "terry69/feedback_gemma", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/terry69/feedback_gemma
- SGLang
How to use terry69/feedback_gemma 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 "terry69/feedback_gemma" \ --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": "terry69/feedback_gemma", "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 "terry69/feedback_gemma" \ --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": "terry69/feedback_gemma", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use terry69/feedback_gemma with Docker Model Runner:
docker model run hf.co/terry69/feedback_gemma
End of training
Browse files
README.md
CHANGED
|
@@ -3,9 +3,15 @@ library_name: transformers
|
|
| 3 |
license: gemma
|
| 4 |
base_model: google/gemma-7b-it
|
| 5 |
tags:
|
|
|
|
| 6 |
- trl
|
| 7 |
- sft
|
| 8 |
- generated_from_trainer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
model-index:
|
| 10 |
- name: feedback_gemma
|
| 11 |
results: []
|
|
@@ -16,7 +22,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 16 |
|
| 17 |
# feedback_gemma
|
| 18 |
|
| 19 |
-
This model is a fine-tuned version of [google/gemma-7b-it](https://huggingface.co/google/gemma-7b-it) on the
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
|
|
| 3 |
license: gemma
|
| 4 |
base_model: google/gemma-7b-it
|
| 5 |
tags:
|
| 6 |
+
- alignment-handbook
|
| 7 |
- trl
|
| 8 |
- sft
|
| 9 |
- generated_from_trainer
|
| 10 |
+
- trl
|
| 11 |
+
- sft
|
| 12 |
+
- generated_from_trainer
|
| 13 |
+
datasets:
|
| 14 |
+
- preference-data
|
| 15 |
model-index:
|
| 16 |
- name: feedback_gemma
|
| 17 |
results: []
|
|
|
|
| 22 |
|
| 23 |
# feedback_gemma
|
| 24 |
|
| 25 |
+
This model is a fine-tuned version of [google/gemma-7b-it](https://huggingface.co/google/gemma-7b-it) on the preference-data dataset.
|
| 26 |
|
| 27 |
## Model description
|
| 28 |
|
all_results.json
CHANGED
|
@@ -1,5 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"epoch": 1.0,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
"total_flos": 117051280588800.0,
|
| 4 |
"train_loss": 0.691351400122923,
|
| 5 |
"train_runtime": 20676.98,
|
|
|
|
| 1 |
{
|
| 2 |
"epoch": 1.0,
|
| 3 |
+
"eval_runtime": 4.8635,
|
| 4 |
+
"eval_samples": 10,
|
| 5 |
+
"eval_samples_per_second": 2.056,
|
| 6 |
+
"eval_steps_per_second": 0.617,
|
| 7 |
"total_flos": 117051280588800.0,
|
| 8 |
"train_loss": 0.691351400122923,
|
| 9 |
"train_runtime": 20676.98,
|
config.json
CHANGED
|
@@ -24,6 +24,6 @@
|
|
| 24 |
"rope_theta": 10000.0,
|
| 25 |
"torch_dtype": "bfloat16",
|
| 26 |
"transformers_version": "4.44.2",
|
| 27 |
-
"use_cache":
|
| 28 |
"vocab_size": 256000
|
| 29 |
}
|
|
|
|
| 24 |
"rope_theta": 10000.0,
|
| 25 |
"torch_dtype": "bfloat16",
|
| 26 |
"transformers_version": "4.44.2",
|
| 27 |
+
"use_cache": true,
|
| 28 |
"vocab_size": 256000
|
| 29 |
}
|
eval_results.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 1.0,
|
| 3 |
+
"eval_runtime": 4.8635,
|
| 4 |
+
"eval_samples": 10,
|
| 5 |
+
"eval_samples_per_second": 2.056,
|
| 6 |
+
"eval_steps_per_second": 0.617
|
| 7 |
+
}
|
runs/Sep19_05-49-17_COE-CS-sv003/events.out.tfevents.1726746544.COE-CS-sv003.346740.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:191bc05fcf0eeac8c2357bbff6f6ee6fd3047ad9a267be985c05dac495c674f8
|
| 3 |
+
size 311
|