Text Generation
Transformers
PyTorch
English
gpt_neox
gpt
llm
large language model
h2o-llmstudio
text-generation-inference
Instructions to use Shishir1807/Indication_Training-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Shishir1807/Indication_Training-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Shishir1807/Indication_Training-1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Shishir1807/Indication_Training-1") model = AutoModelForCausalLM.from_pretrained("Shishir1807/Indication_Training-1") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Shishir1807/Indication_Training-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Shishir1807/Indication_Training-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Shishir1807/Indication_Training-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Shishir1807/Indication_Training-1
- SGLang
How to use Shishir1807/Indication_Training-1 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 "Shishir1807/Indication_Training-1" \ --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": "Shishir1807/Indication_Training-1", "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 "Shishir1807/Indication_Training-1" \ --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": "Shishir1807/Indication_Training-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Shishir1807/Indication_Training-1 with Docker Model Runner:
docker model run hf.co/Shishir1807/Indication_Training-1
Commit ·
9f8a181
1
Parent(s): 04576c4
Upload cfg.yaml
Browse files
cfg.yaml
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
architecture:
|
| 2 |
+
backbone_dtype: float16
|
| 3 |
+
force_embedding_gradients: false
|
| 4 |
+
gradient_checkpointing: false
|
| 5 |
+
intermediate_dropout: 0.0
|
| 6 |
+
pretrained: true
|
| 7 |
+
pretrained_weights: ''
|
| 8 |
+
augmentation:
|
| 9 |
+
random_parent_probability: 0.0
|
| 10 |
+
skip_parent_probability: 0.0
|
| 11 |
+
token_mask_probability: 0.0
|
| 12 |
+
dataset:
|
| 13 |
+
add_eos_token_to_answer: true
|
| 14 |
+
add_eos_token_to_prompt: true
|
| 15 |
+
answer_column: "output\r"
|
| 16 |
+
data_sample: 1.0
|
| 17 |
+
data_sample_choice:
|
| 18 |
+
- Train
|
| 19 |
+
- Validation
|
| 20 |
+
mask_prompt_labels: true
|
| 21 |
+
parent_id_column: None
|
| 22 |
+
prompt_column:
|
| 23 |
+
- instruction
|
| 24 |
+
text_answer_separator: <|answer|>
|
| 25 |
+
text_prompt_start: <|prompt|>
|
| 26 |
+
train_dataframe: data/user/Planner_Indication/output_I.csv
|
| 27 |
+
validation_dataframe: None
|
| 28 |
+
validation_size: 0.01
|
| 29 |
+
validation_strategy: automatic
|
| 30 |
+
environment:
|
| 31 |
+
compile_model: false
|
| 32 |
+
find_unused_parameters: false
|
| 33 |
+
gpus:
|
| 34 |
+
- '0'
|
| 35 |
+
- '1'
|
| 36 |
+
mixed_precision: true
|
| 37 |
+
number_of_workers: 8
|
| 38 |
+
seed: -1
|
| 39 |
+
trust_remote_code: false
|
| 40 |
+
use_fsdp: false
|
| 41 |
+
experiment_name: Indication_Training.1
|
| 42 |
+
llm_backbone: EleutherAI/pythia-2.8b-deduped
|
| 43 |
+
logging:
|
| 44 |
+
logger: None
|
| 45 |
+
neptune_project: ''
|
| 46 |
+
number_of_texts: 10
|
| 47 |
+
output_directory: output/user/Indication_Training.1/
|
| 48 |
+
prediction:
|
| 49 |
+
batch_size_inference: 0
|
| 50 |
+
do_sample: false
|
| 51 |
+
max_length_inference: 256
|
| 52 |
+
metric: BLEU
|
| 53 |
+
min_length_inference: 2
|
| 54 |
+
num_beams: 2
|
| 55 |
+
num_history: 2
|
| 56 |
+
repetition_penalty: 1.2
|
| 57 |
+
stop_tokens: ''
|
| 58 |
+
temperature: 0.0
|
| 59 |
+
top_k: 0
|
| 60 |
+
top_p: 1.0
|
| 61 |
+
problem_type: text_causal_language_modeling
|
| 62 |
+
tokenizer:
|
| 63 |
+
add_prefix_space: false
|
| 64 |
+
add_prompt_answer_tokens: false
|
| 65 |
+
max_length: 512
|
| 66 |
+
max_length_answer: 256
|
| 67 |
+
max_length_prompt: 256
|
| 68 |
+
padding_quantile: 1.0
|
| 69 |
+
use_fast: true
|
| 70 |
+
training:
|
| 71 |
+
batch_size: 3
|
| 72 |
+
differential_learning_rate: 1.0e-05
|
| 73 |
+
differential_learning_rate_layers: []
|
| 74 |
+
drop_last_batch: true
|
| 75 |
+
epochs: 1
|
| 76 |
+
evaluate_before_training: true
|
| 77 |
+
evaluation_epochs: 1.0
|
| 78 |
+
grad_accumulation: 1
|
| 79 |
+
gradient_clip: 0.0
|
| 80 |
+
learning_rate: 0.0001
|
| 81 |
+
lora: true
|
| 82 |
+
lora_alpha: 16
|
| 83 |
+
lora_dropout: 0.05
|
| 84 |
+
lora_r: 4
|
| 85 |
+
lora_target_modules: ''
|
| 86 |
+
loss_function: CrossEntropy
|
| 87 |
+
optimizer: AdamW
|
| 88 |
+
save_best_checkpoint: false
|
| 89 |
+
schedule: Cosine
|
| 90 |
+
train_validation_data: false
|
| 91 |
+
warmup_epochs: 0.0
|
| 92 |
+
weight_decay: 0.0
|