Instructions to use infly/INF-34B-Chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use infly/INF-34B-Chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="infly/INF-34B-Chat", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("infly/INF-34B-Chat", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use infly/INF-34B-Chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "infly/INF-34B-Chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "infly/INF-34B-Chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/infly/INF-34B-Chat
- SGLang
How to use infly/INF-34B-Chat 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 "infly/INF-34B-Chat" \ --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": "infly/INF-34B-Chat", "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 "infly/INF-34B-Chat" \ --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": "infly/INF-34B-Chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use infly/INF-34B-Chat with Docker Model Runner:
docker model run hf.co/infly/INF-34B-Chat
update model weights
Browse files- .gitattributes +1 -0
- model-00013-of-00017.safetensors.temp → model-00013-of-00017.safetensors +2 -2
- model-00014-of-00017.safetensors.temp → model-00014-of-00017.safetensor +2 -2
- model-00015-of-00017.safetensors.temp → model-00015-of-00017.safetensors +2 -2
- model-00016-of-00017.safetensors.temp → model-00016-of-00017.safetensors +2 -2
.gitattributes
CHANGED
|
@@ -37,3 +37,4 @@ model-00013-of-00017.safetensors.temp filter=lfs diff=lfs merge=lfs -text
|
|
| 37 |
model-00014-of-00017.safetensors.temp filter=lfs diff=lfs merge=lfs -text
|
| 38 |
model-00015-of-00017.safetensors.temp filter=lfs diff=lfs merge=lfs -text
|
| 39 |
model-00016-of-00017.safetensors.temp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 37 |
model-00014-of-00017.safetensors.temp filter=lfs diff=lfs merge=lfs -text
|
| 38 |
model-00015-of-00017.safetensors.temp filter=lfs diff=lfs merge=lfs -text
|
| 39 |
model-00016-of-00017.safetensors.temp filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
model-00014-of-00017.safetensor filter=lfs diff=lfs merge=lfs -text
|
model-00013-of-00017.safetensors.temp → model-00013-of-00017.safetensors
RENAMED
|
@@ -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:c9da1c8ec3ad2b1e2788906c4b78c2b577138327cf7acebe7b1551fddad8ebd5
|
| 3 |
+
size 4152561408
|
model-00014-of-00017.safetensors.temp → model-00014-of-00017.safetensor
RENAMED
|
@@ -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:ba2ebd17154db818b2e52f9ab895fbf90b1cbb7366967a33f0e8ab93ab559d4e
|
| 3 |
+
size 4152561408
|
model-00015-of-00017.safetensors.temp → model-00015-of-00017.safetensors
RENAMED
|
@@ -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:d41e9c88c04ee595e29565b765d3dbf2766ac293c77a5526cc97a466acdea501
|
| 3 |
+
size 4152561408
|
model-00016-of-00017.safetensors.temp → model-00016-of-00017.safetensors
RENAMED
|
@@ -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:9f148c495d63f9c9c35f883939dd1f5730dbf0b334db50e54fc86eca58fffced
|
| 3 |
+
size 4152561408
|