Instructions to use VacationGenieSeniorProject2025/VacationGenie with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use VacationGenieSeniorProject2025/VacationGenie with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/llama-3-8b-Instruct") model = PeftModel.from_pretrained(base_model, "VacationGenieSeniorProject2025/VacationGenie") - Transformers
How to use VacationGenieSeniorProject2025/VacationGenie with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="VacationGenieSeniorProject2025/VacationGenie") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("VacationGenieSeniorProject2025/VacationGenie") model = AutoModelForCausalLM.from_pretrained("VacationGenieSeniorProject2025/VacationGenie") 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 Settings
- vLLM
How to use VacationGenieSeniorProject2025/VacationGenie with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "VacationGenieSeniorProject2025/VacationGenie" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VacationGenieSeniorProject2025/VacationGenie", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/VacationGenieSeniorProject2025/VacationGenie
- SGLang
How to use VacationGenieSeniorProject2025/VacationGenie 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 "VacationGenieSeniorProject2025/VacationGenie" \ --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": "VacationGenieSeniorProject2025/VacationGenie", "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 "VacationGenieSeniorProject2025/VacationGenie" \ --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": "VacationGenieSeniorProject2025/VacationGenie", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use VacationGenieSeniorProject2025/VacationGenie with Docker Model Runner:
docker model run hf.co/VacationGenieSeniorProject2025/VacationGenie
Upload config.json with huggingface_hub
Browse files- config.json +85 -0
config.json
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"vocab_size": 128256,
|
| 3 |
+
"max_position_embeddings": 8192,
|
| 4 |
+
"hidden_size": 4096,
|
| 5 |
+
"intermediate_size": 14336,
|
| 6 |
+
"num_hidden_layers": 32,
|
| 7 |
+
"num_attention_heads": 32,
|
| 8 |
+
"num_key_value_heads": 8,
|
| 9 |
+
"hidden_act": "silu",
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"rms_norm_eps": 1e-05,
|
| 12 |
+
"pretraining_tp": 1,
|
| 13 |
+
"use_cache": true,
|
| 14 |
+
"rope_theta": 500000.0,
|
| 15 |
+
"rope_scaling": null,
|
| 16 |
+
"attention_bias": false,
|
| 17 |
+
"attention_dropout": 0.0,
|
| 18 |
+
"mlp_bias": false,
|
| 19 |
+
"head_dim": 128,
|
| 20 |
+
"return_dict": true,
|
| 21 |
+
"output_hidden_states": false,
|
| 22 |
+
"torchscript": false,
|
| 23 |
+
"torch_dtype": "bfloat16",
|
| 24 |
+
"use_bfloat16": false,
|
| 25 |
+
"tf_legacy_loss": false,
|
| 26 |
+
"pruned_heads": {},
|
| 27 |
+
"tie_word_embeddings": false,
|
| 28 |
+
"chunk_size_feed_forward": 0,
|
| 29 |
+
"is_encoder_decoder": false,
|
| 30 |
+
"is_decoder": false,
|
| 31 |
+
"cross_attention_hidden_size": null,
|
| 32 |
+
"add_cross_attention": false,
|
| 33 |
+
"tie_encoder_decoder": false,
|
| 34 |
+
"max_length": 20,
|
| 35 |
+
"min_length": 0,
|
| 36 |
+
"do_sample": false,
|
| 37 |
+
"early_stopping": false,
|
| 38 |
+
"num_beams": 1,
|
| 39 |
+
"num_beam_groups": 1,
|
| 40 |
+
"diversity_penalty": 0.0,
|
| 41 |
+
"temperature": 1.0,
|
| 42 |
+
"top_k": 50,
|
| 43 |
+
"top_p": 1.0,
|
| 44 |
+
"typical_p": 1.0,
|
| 45 |
+
"repetition_penalty": 1.0,
|
| 46 |
+
"length_penalty": 1.0,
|
| 47 |
+
"no_repeat_ngram_size": 0,
|
| 48 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 49 |
+
"bad_words_ids": null,
|
| 50 |
+
"num_return_sequences": 1,
|
| 51 |
+
"output_scores": false,
|
| 52 |
+
"return_dict_in_generate": false,
|
| 53 |
+
"forced_bos_token_id": null,
|
| 54 |
+
"forced_eos_token_id": null,
|
| 55 |
+
"remove_invalid_values": false,
|
| 56 |
+
"exponential_decay_length_penalty": null,
|
| 57 |
+
"suppress_tokens": null,
|
| 58 |
+
"begin_suppress_tokens": null,
|
| 59 |
+
"architectures": [
|
| 60 |
+
"LlamaForCausalLM"
|
| 61 |
+
],
|
| 62 |
+
"finetuning_task": null,
|
| 63 |
+
"id2label": {
|
| 64 |
+
"0": "LABEL_0",
|
| 65 |
+
"1": "LABEL_1"
|
| 66 |
+
},
|
| 67 |
+
"label2id": {
|
| 68 |
+
"LABEL_0": 0,
|
| 69 |
+
"LABEL_1": 1
|
| 70 |
+
},
|
| 71 |
+
"tokenizer_class": null,
|
| 72 |
+
"prefix": null,
|
| 73 |
+
"bos_token_id": 128000,
|
| 74 |
+
"pad_token_id": 128255,
|
| 75 |
+
"eos_token_id": 128009,
|
| 76 |
+
"sep_token_id": null,
|
| 77 |
+
"decoder_start_token_id": null,
|
| 78 |
+
"task_specific_params": null,
|
| 79 |
+
"problem_type": null,
|
| 80 |
+
"_name_or_path": "VacationGenieSeniorProject2025/VacationGenie",
|
| 81 |
+
"transformers_version": "4.36.0",
|
| 82 |
+
"model_type": "llama",
|
| 83 |
+
"unsloth_version": "2024.9",
|
| 84 |
+
"output_attentions": false
|
| 85 |
+
}
|