Instructions to use Expanded-Repetition/code_model_results with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Expanded-Repetition/code_model_results with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Expanded-Repetition/code_model_results")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Expanded-Repetition/code_model_results") model = AutoModelForCausalLM.from_pretrained("Expanded-Repetition/code_model_results", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Expanded-Repetition/code_model_results with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Expanded-Repetition/code_model_results" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Expanded-Repetition/code_model_results", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Expanded-Repetition/code_model_results
- SGLang
How to use Expanded-Repetition/code_model_results 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 "Expanded-Repetition/code_model_results" \ --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": "Expanded-Repetition/code_model_results", "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 "Expanded-Repetition/code_model_results" \ --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": "Expanded-Repetition/code_model_results", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Expanded-Repetition/code_model_results with Docker Model Runner:
docker model run hf.co/Expanded-Repetition/code_model_results
Download training_args.bin from Expanded-Repetition/code_model_results: direct link, hf CLI and curl.
- Browser
- Download file 5.2 kB
-
https://huggingface.co/Expanded-Repetition/code_model_results/resolve/main/training_args.bin
- Command line
-
hf download hf://Expanded-Repetition/code_model_results/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/Expanded-Repetition/code_model_results/resolve/main/training_args.bin
5.2 kB
- Xet hash:
- da327505f3cd5fbd4f4dadc5f39e3b7c45df8e04a1e0920c39ecf139fd24ab33
- Size of remote file:
- 5.2 kB
- SHA256:
- 1dcded32ff97170000c0f73fa18a010a0ecc9fad9c2be82f8e0d7c14bf83edeb
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.