Instructions to use huggingtweets/codeinecucumber with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/codeinecucumber with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/codeinecucumber")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/codeinecucumber") model = AutoModelForCausalLM.from_pretrained("huggingtweets/codeinecucumber", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/codeinecucumber with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/codeinecucumber" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/codeinecucumber", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/codeinecucumber
- SGLang
How to use huggingtweets/codeinecucumber 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 "huggingtweets/codeinecucumber" \ --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": "huggingtweets/codeinecucumber", "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 "huggingtweets/codeinecucumber" \ --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": "huggingtweets/codeinecucumber", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/codeinecucumber with Docker Model Runner:
docker model run hf.co/huggingtweets/codeinecucumber
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.6936ea6
-
Update model preview
d76a6a1 -
New model from https://wandb.ai/wandb/huggingtweets/runs/atqx46uu
86846a3
-
Update model preview
281d1a6 -
New model from https://wandb.ai/wandb/huggingtweets/runs/szqhs6it
7ead284
-
Update model preview
7f5de4b -
New model from https://wandb.ai/wandb/huggingtweets/runs/3mdtqfjq
5af188a
-
Update model preview
b1267d9 -
New model from https://wandb.ai/wandb/huggingtweets/runs/htupj2d2
1843533
-
Update model preview
e9cdfa3 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2f4uoo3q
a16609b -
Update model preview
f1c7a0d -
New model from https://wandb.ai/wandb/huggingtweets/runs/1u4esyyo
9026bde
-
Update model preview
36ce012 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1sigj753
2a98f7c -
Update model preview
dcd1bfa -
New model from https://wandb.ai/wandb/huggingtweets/runs/2mb2l0tc
412ed56
-
Update model preview
ed59ec8 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2jp00c9r
18bed73 -
Update model preview
fa1754a -
New model from https://wandb.ai/wandb/huggingtweets/runs/otps2rck
b20b8a3 -
New model from https://wandb.ai/wandb/huggingtweets/runs/rm5mpi3c
9d7286a -
Update model preview
2676d70 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3kau5fl0
9049864
-
Update model preview
6e81007 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1uvaokqh
9a0639e -
Update model preview
a63b048 -
New model from https://wandb.ai/wandb/huggingtweets/runs/31m81nsp
7414ba1
-
Update model preview
e80095c -
New model from https://wandb.ai/wandb/huggingtweets/runs/1dqc9aw9
bd31d5b -
Update model preview
aa9da0b -
New model from https://wandb.ai/wandb/huggingtweets/runs/2cgwn08t
8a29b2e
-
Update model preview
5a434ff -
New model from https://wandb.ai/wandb/huggingtweets/runs/kltnq0t8
4b4b38e -
New model from https://wandb.ai/wandb/huggingtweets/runs/38lj19ie
1a17d1a -
Update model preview
428495b -
New model from https://wandb.ai/wandb/huggingtweets/runs/2d1wzs6c
2e7782d
-
Update model preview
14796b7 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1de95ncj
cac832a -
New model from https://wandb.ai/wandb/huggingtweets/runs/nkn97tpb
3fde7e4 -
New model from https://wandb.ai/wandb/huggingtweets/runs/32f7c875
631a480 -
New model from https://wandb.ai/wandb/huggingtweets/runs/lup5kejc
8250b2c -
initial commit
9b21078