Text Generation
Transformers
Safetensors
qwen2
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use furmaniak/pretrain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use furmaniak/pretrain with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="furmaniak/pretrain") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("furmaniak/pretrain") model = AutoModelForCausalLM.from_pretrained("furmaniak/pretrain", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use furmaniak/pretrain with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "furmaniak/pretrain" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "furmaniak/pretrain", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/furmaniak/pretrain
- SGLang
How to use furmaniak/pretrain 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 "furmaniak/pretrain" \ --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": "furmaniak/pretrain", "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 "furmaniak/pretrain" \ --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": "furmaniak/pretrain", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use furmaniak/pretrain with Docker Model Runner:
docker model run hf.co/furmaniak/pretrain
Remove old files
Browse files- model-00001-of-00004.safetensors +0 -3
- model-00001-of-00006.safetensors +0 -3
- model-00002-of-00004.safetensors +0 -3
- model-00002-of-00006.safetensors +0 -3
- model-00003-of-00004.safetensors +0 -3
- model-00003-of-00006.safetensors +0 -3
- model-00004-of-00004.safetensors +0 -3
- model-00004-of-00006.safetensors +0 -3
- model-00005-of-00006.safetensors +0 -3
- model-00006-of-00006.safetensors +0 -3
model-00001-of-00004.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:893aed5a5429d88bb2f75ce1595f72a70bd9c166cba40059f678f23c580b9657
|
| 3 |
-
size 4976698672
|
|
|
|
|
|
|
|
|
|
|
|
model-00001-of-00006.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:de28d7a67ae9caff7381247ac3b1a91db14a4ff8578f4f0cf23d9033771bd1fd
|
| 3 |
-
size 4933656472
|
|
|
|
|
|
|
|
|
|
|
|
model-00002-of-00004.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e00d2419d06002c97493bc7c3f9edff8dc1f7a101e1456d5182c7d45971a4529
|
| 3 |
-
size 4999802720
|
|
|
|
|
|
|
|
|
|
|
|
model-00002-of-00006.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ac40685aefe21310ea94d40ba6fcc417edd060d05b5105ce70732d9cba234412
|
| 3 |
-
size 4954690712
|
|
|
|
|
|
|
|
|
|
|
|
model-00003-of-00004.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:efb0a94de6bf2ed73a97cdac767c4155baadcda71609f153c51d155863695a2b
|
| 3 |
-
size 4915916176
|
|
|
|
|
|
|
|
|
|
|
|
model-00003-of-00006.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7f2b1b6180a12785f8ac4055fa93a60882d1ab51c0f0821f15c28bde1273c493
|
| 3 |
-
size 4902241352
|
|
|
|
|
|
|
|
|
|
|
|
model-00004-of-00004.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a576757a777d3342f6c5db1256979b185493e83fc7bb3c410635e7c3e8db7a89
|
| 3 |
-
size 1168138808
|
|
|
|
|
|
|
|
|
|
|
|
model-00004-of-00006.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:91c93139785f87e0db7a372da6d6073987b6aa68c227919dbef16a9abd6790f3
|
| 3 |
-
size 4771169120
|
|
|
|
|
|
|
|
|
|
|
|
model-00005-of-00006.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:80f764677f79be4dce7011d16b03187e449ce500cfa452674d6dbd479c0f6c6a
|
| 3 |
-
size 4771169120
|
|
|
|
|
|
|
|
|
|
|
|
model-00006-of-00006.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8ad2826dd2105d04babd600a3d597b733d23024c086be82e234a68c3d8ea0587
|
| 3 |
-
size 4986116216
|
|
|
|
|
|
|
|
|
|
|
|