Text Generation
Transformers
Safetensors
English
text-generation-inference
unsloth
mistral
trl
question-generation
Instructions to use kanoza/fine_tuned_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kanoza/fine_tuned_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kanoza/fine_tuned_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("kanoza/fine_tuned_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kanoza/fine_tuned_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kanoza/fine_tuned_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kanoza/fine_tuned_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kanoza/fine_tuned_model
- SGLang
How to use kanoza/fine_tuned_model 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 "kanoza/fine_tuned_model" \ --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": "kanoza/fine_tuned_model", "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 "kanoza/fine_tuned_model" \ --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": "kanoza/fine_tuned_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use kanoza/fine_tuned_model with Docker Model Runner:
docker model run hf.co/kanoza/fine_tuned_model
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,7 +18,6 @@ widgets:
|
|
| 18 |
instruction: >-
|
| 19 |
Generate a multiple-choice question (MCQ) based on the passage, provide
|
| 20 |
options, and indicate the correct option.
|
| 21 |
-
text: Generate a question from the text
|
| 22 |
context: >-
|
| 23 |
Photosynthesis is the process by which plants convert sunlight into
|
| 24 |
energy.
|
|
@@ -35,7 +34,6 @@ widgets:
|
|
| 35 |
instruction: >-
|
| 36 |
Generate a multiple-choice question (MCQ) based on the passage, provide
|
| 37 |
options, and indicate the correct option.
|
| 38 |
-
text: Generate a question from scientific passage
|
| 39 |
context: >-
|
| 40 |
Cellular respiration is a metabolic process that converts nutrients into
|
| 41 |
ATP, the energy currency of the cell.
|
|
@@ -50,7 +48,6 @@ widgets:
|
|
| 50 |
example_title: Cellular Respiration MCQ
|
| 51 |
- inputs:
|
| 52 |
instruction: Generate a multiple-choice question (MCQ) based on a historical passage
|
| 53 |
-
text: Generate a question from historical context
|
| 54 |
context: >-
|
| 55 |
The Industrial Revolution began in Great Britain in the late 18th century,
|
| 56 |
transforming manufacturing processes through mechanization.
|
|
@@ -65,7 +62,6 @@ widgets:
|
|
| 65 |
example_title: Industrial Revolution MCQ
|
| 66 |
- inputs:
|
| 67 |
instruction: Generate a multiple-choice question about environmental science
|
| 68 |
-
text: Generate a question from ecological context
|
| 69 |
context: >-
|
| 70 |
Biodiversity refers to the variety of life forms within a given ecosystem,
|
| 71 |
including genetic, species, and ecological diversity.
|
|
|
|
| 18 |
instruction: >-
|
| 19 |
Generate a multiple-choice question (MCQ) based on the passage, provide
|
| 20 |
options, and indicate the correct option.
|
|
|
|
| 21 |
context: >-
|
| 22 |
Photosynthesis is the process by which plants convert sunlight into
|
| 23 |
energy.
|
|
|
|
| 34 |
instruction: >-
|
| 35 |
Generate a multiple-choice question (MCQ) based on the passage, provide
|
| 36 |
options, and indicate the correct option.
|
|
|
|
| 37 |
context: >-
|
| 38 |
Cellular respiration is a metabolic process that converts nutrients into
|
| 39 |
ATP, the energy currency of the cell.
|
|
|
|
| 48 |
example_title: Cellular Respiration MCQ
|
| 49 |
- inputs:
|
| 50 |
instruction: Generate a multiple-choice question (MCQ) based on a historical passage
|
|
|
|
| 51 |
context: >-
|
| 52 |
The Industrial Revolution began in Great Britain in the late 18th century,
|
| 53 |
transforming manufacturing processes through mechanization.
|
|
|
|
| 62 |
example_title: Industrial Revolution MCQ
|
| 63 |
- inputs:
|
| 64 |
instruction: Generate a multiple-choice question about environmental science
|
|
|
|
| 65 |
context: >-
|
| 66 |
Biodiversity refers to the variety of life forms within a given ecosystem,
|
| 67 |
including genetic, species, and ecological diversity.
|