Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use thorirhrafn/gpt_icesum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thorirhrafn/gpt_icesum with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="thorirhrafn/gpt_icesum")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("thorirhrafn/gpt_icesum") model = AutoModelForCausalLM.from_pretrained("thorirhrafn/gpt_icesum", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use thorirhrafn/gpt_icesum with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "thorirhrafn/gpt_icesum" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "thorirhrafn/gpt_icesum", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/thorirhrafn/gpt_icesum
- SGLang
How to use thorirhrafn/gpt_icesum 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 "thorirhrafn/gpt_icesum" \ --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": "thorirhrafn/gpt_icesum", "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 "thorirhrafn/gpt_icesum" \ --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": "thorirhrafn/gpt_icesum", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use thorirhrafn/gpt_icesum with Docker Model Runner:
docker model run hf.co/thorirhrafn/gpt_icesum
Training in progress, epoch 0
Browse files
adapter_config.json
CHANGED
|
@@ -9,13 +9,13 @@
|
|
| 9 |
"layers_pattern": null,
|
| 10 |
"layers_to_transform": null,
|
| 11 |
"loftq_config": {},
|
| 12 |
-
"lora_alpha":
|
| 13 |
"lora_dropout": 0.1,
|
| 14 |
"megatron_config": null,
|
| 15 |
"megatron_core": "megatron.core",
|
| 16 |
"modules_to_save": null,
|
| 17 |
"peft_type": "LORA",
|
| 18 |
-
"r":
|
| 19 |
"rank_pattern": {},
|
| 20 |
"revision": null,
|
| 21 |
"target_modules": [
|
|
|
|
| 9 |
"layers_pattern": null,
|
| 10 |
"layers_to_transform": null,
|
| 11 |
"loftq_config": {},
|
| 12 |
+
"lora_alpha": 256,
|
| 13 |
"lora_dropout": 0.1,
|
| 14 |
"megatron_config": null,
|
| 15 |
"megatron_core": "megatron.core",
|
| 16 |
"modules_to_save": null,
|
| 17 |
"peft_type": "LORA",
|
| 18 |
+
"r": 256,
|
| 19 |
"rank_pattern": {},
|
| 20 |
"revision": null,
|
| 21 |
"target_modules": [
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d59343791dc94fe1eda872268d6e4f026c744c8dae4a18fe61a5324b9b311a75
|
| 3 |
+
size 100669688
|
runs/Apr01_15-08-17_gpu-3/events.out.tfevents.1711984097.gpu-3.2214297.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8cc9cbbfb68a65f2206474cff3c0811ee51fc03709cca385b5e5e27a4da7c373
|
| 3 |
+
size 10167
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4920
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d93059cc830fa754b6395a0c0a948b8520b2ee5497fc86f97026bb308757487
|
| 3 |
size 4920
|