Text Generation
Transformers
Safetensors
English
qwen2
text-generation-inference
unsloth
trl
4-bit precision
bitsandbytes
Instructions to use JackyMu/LocalGeoLite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JackyMu/LocalGeoLite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JackyMu/LocalGeoLite")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("JackyMu/LocalGeoLite") model = AutoModelForCausalLM.from_pretrained("JackyMu/LocalGeoLite") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use JackyMu/LocalGeoLite with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JackyMu/LocalGeoLite" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JackyMu/LocalGeoLite", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JackyMu/LocalGeoLite
- SGLang
How to use JackyMu/LocalGeoLite 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 "JackyMu/LocalGeoLite" \ --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": "JackyMu/LocalGeoLite", "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 "JackyMu/LocalGeoLite" \ --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": "JackyMu/LocalGeoLite", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Studio new
How to use JackyMu/LocalGeoLite with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for JackyMu/LocalGeoLite to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for JackyMu/LocalGeoLite to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for JackyMu/LocalGeoLite to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="JackyMu/LocalGeoLite", max_seq_length=2048, ) - Docker Model Runner
How to use JackyMu/LocalGeoLite with Docker Model Runner:
docker model run hf.co/JackyMu/LocalGeoLite
Delete adapter_config.json
Browse files- adapter_config.json +0 -37
adapter_config.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"alpha_pattern": {},
|
| 3 |
-
"auto_mapping": null,
|
| 4 |
-
"base_model_name_or_path": "unsloth/qwen2.5-7b-bnb-4bit",
|
| 5 |
-
"bias": "none",
|
| 6 |
-
"eva_config": null,
|
| 7 |
-
"exclude_modules": null,
|
| 8 |
-
"fan_in_fan_out": false,
|
| 9 |
-
"inference_mode": true,
|
| 10 |
-
"init_lora_weights": true,
|
| 11 |
-
"layer_replication": null,
|
| 12 |
-
"layers_pattern": null,
|
| 13 |
-
"layers_to_transform": null,
|
| 14 |
-
"loftq_config": {},
|
| 15 |
-
"lora_alpha": 16,
|
| 16 |
-
"lora_bias": false,
|
| 17 |
-
"lora_dropout": 0,
|
| 18 |
-
"megatron_config": null,
|
| 19 |
-
"megatron_core": "megatron.core",
|
| 20 |
-
"modules_to_save": null,
|
| 21 |
-
"peft_type": "LORA",
|
| 22 |
-
"r": 16,
|
| 23 |
-
"rank_pattern": {},
|
| 24 |
-
"revision": null,
|
| 25 |
-
"target_modules": [
|
| 26 |
-
"k_proj",
|
| 27 |
-
"up_proj",
|
| 28 |
-
"down_proj",
|
| 29 |
-
"o_proj",
|
| 30 |
-
"v_proj",
|
| 31 |
-
"q_proj",
|
| 32 |
-
"gate_proj"
|
| 33 |
-
],
|
| 34 |
-
"task_type": "CAUSAL_LM",
|
| 35 |
-
"use_dora": false,
|
| 36 |
-
"use_rslora": false
|
| 37 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|