Text Generation
Transformers
Safetensors
PyTorch
English
falcon
custom_code
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use IvanD2002/Stuco_Task_Generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IvanD2002/Stuco_Task_Generator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IvanD2002/Stuco_Task_Generator", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("IvanD2002/Stuco_Task_Generator", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("IvanD2002/Stuco_Task_Generator", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use IvanD2002/Stuco_Task_Generator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IvanD2002/Stuco_Task_Generator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IvanD2002/Stuco_Task_Generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/IvanD2002/Stuco_Task_Generator
- SGLang
How to use IvanD2002/Stuco_Task_Generator 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 "IvanD2002/Stuco_Task_Generator" \ --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": "IvanD2002/Stuco_Task_Generator", "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 "IvanD2002/Stuco_Task_Generator" \ --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": "IvanD2002/Stuco_Task_Generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use IvanD2002/Stuco_Task_Generator with Docker Model Runner:
docker model run hf.co/IvanD2002/Stuco_Task_Generator
Update config.json
Browse files- config.json +2 -20
config.json
CHANGED
|
@@ -20,32 +20,14 @@
|
|
| 20 |
"hidden_size": 4544,
|
| 21 |
"initializer_range": 0.02,
|
| 22 |
"layer_norm_epsilon": 1e-05,
|
| 23 |
-
"max_position_embeddings": 2048,
|
| 24 |
"model_type": "falcon",
|
| 25 |
"multi_query": true,
|
| 26 |
"new_decoder_architecture": false,
|
| 27 |
"num_attention_heads": 71,
|
| 28 |
"num_hidden_layers": 32,
|
| 29 |
-
"num_kv_heads": 71,
|
| 30 |
"parallel_attn": true,
|
| 31 |
-
"
|
| 32 |
-
|
| 33 |
-
"_load_in_8bit": false,
|
| 34 |
-
"bnb_4bit_compute_dtype": "float32",
|
| 35 |
-
"bnb_4bit_quant_type": "fp4",
|
| 36 |
-
"bnb_4bit_use_double_quant": false,
|
| 37 |
-
"llm_int8_enable_fp32_cpu_offload": false,
|
| 38 |
-
"llm_int8_has_fp16_weight": false,
|
| 39 |
-
"llm_int8_skip_modules": null,
|
| 40 |
-
"llm_int8_threshold": 6.0,
|
| 41 |
-
"load_in_4bit": true,
|
| 42 |
-
"load_in_8bit": false,
|
| 43 |
-
"quant_method": "bitsandbytes"
|
| 44 |
-
},
|
| 45 |
-
"rope_scaling": null,
|
| 46 |
-
"rope_theta": 10000.0,
|
| 47 |
-
"torch_dtype": "float16",
|
| 48 |
-
"transformers_version": "4.38.2",
|
| 49 |
"use_cache": true,
|
| 50 |
"vocab_size": 65024
|
| 51 |
}
|
|
|
|
| 20 |
"hidden_size": 4544,
|
| 21 |
"initializer_range": 0.02,
|
| 22 |
"layer_norm_epsilon": 1e-05,
|
|
|
|
| 23 |
"model_type": "falcon",
|
| 24 |
"multi_query": true,
|
| 25 |
"new_decoder_architecture": false,
|
| 26 |
"num_attention_heads": 71,
|
| 27 |
"num_hidden_layers": 32,
|
|
|
|
| 28 |
"parallel_attn": true,
|
| 29 |
+
"torch_dtype": "bfloat16",
|
| 30 |
+
"transformers_version": "4.27.4",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
"use_cache": true,
|
| 32 |
"vocab_size": 65024
|
| 33 |
}
|