Text Generation
Transformers
Safetensors
mistral
mergekit
Merge
conversational
text-generation-inference
Instructions to use hardlyworking/workinghard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hardlyworking/workinghard with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hardlyworking/workinghard") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("hardlyworking/workinghard") model = AutoModelForCausalLM.from_pretrained("hardlyworking/workinghard") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use hardlyworking/workinghard with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hardlyworking/workinghard" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hardlyworking/workinghard", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hardlyworking/workinghard
- SGLang
How to use hardlyworking/workinghard 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 "hardlyworking/workinghard" \ --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": "hardlyworking/workinghard", "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 "hardlyworking/workinghard" \ --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": "hardlyworking/workinghard", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use hardlyworking/workinghard with Docker Model Runner:
docker model run hf.co/hardlyworking/workinghard
Upload folder using huggingface_hub
Browse files- README.md +1 -1
- mergekit_config.yml +1 -1
- model-00001-of-00005.safetensors +1 -1
- model-00002-of-00005.safetensors +1 -1
- model-00003-of-00005.safetensors +1 -1
- model-00004-of-00005.safetensors +1 -1
- model-00005-of-00005.safetensors +1 -1
README.md
CHANGED
|
@@ -35,7 +35,7 @@ merge_method: slerp
|
|
| 35 |
base_model: hardlyworking/goldenworking
|
| 36 |
parameters:
|
| 37 |
t:
|
| 38 |
-
- value: 0.
|
| 39 |
dtype: bfloat16
|
| 40 |
tokenizer_source: base
|
| 41 |
```
|
|
|
|
| 35 |
base_model: hardlyworking/goldenworking
|
| 36 |
parameters:
|
| 37 |
t:
|
| 38 |
+
- value: 0.35
|
| 39 |
dtype: bfloat16
|
| 40 |
tokenizer_source: base
|
| 41 |
```
|
mergekit_config.yml
CHANGED
|
@@ -5,6 +5,6 @@ merge_method: slerp
|
|
| 5 |
base_model: hardlyworking/goldenworking
|
| 6 |
parameters:
|
| 7 |
t:
|
| 8 |
-
- value: 0.
|
| 9 |
dtype: bfloat16
|
| 10 |
tokenizer_source: base
|
|
|
|
| 5 |
base_model: hardlyworking/goldenworking
|
| 6 |
parameters:
|
| 7 |
t:
|
| 8 |
+
- value: 0.35
|
| 9 |
dtype: bfloat16
|
| 10 |
tokenizer_source: base
|
model-00001-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4865489336
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd377a27cec1c4873ba6ed76f3f2cf2b9a2814c992920129377c3f155e627f11
|
| 3 |
size 4865489336
|
model-00002-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4907529456
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffd75bd59f36fea38e2573f1a139fe22bb5b8c2bac37db3b463b4ccf96fe194f
|
| 3 |
size 4907529456
|
model-00003-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4907529464
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc9a137b9c9b795875b8467d0efee31554d913019b8af672c7694111b4195c01
|
| 3 |
size 4907529464
|
model-00004-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4907529456
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:204e6039a55a8b1b0c4d15957fad502cf6504e58959f4db7bcbd568f301b67ba
|
| 3 |
size 4907529456
|
model-00005-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4907529392
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:038265881154fac9f15b7d3bf48b4a78abb95982d25e75b4821bddaa8e40f3b8
|
| 3 |
size 4907529392
|