Text Generation
Transformers
PyTorch
English
thor-lm
causal-lm
thor
optimizer
llama
foundation-model
spectral-momentum
a100-benchmarked
fineweb-edu
Run this model with HF Jobs
Run Ultron28/thor-lm-1b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Ultron28/thor-lm-1b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Ultron28/thor-lm-1b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Ultron28/thor-lm-1b. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Ultron28/thor-lm-1b. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Ultron28/thor-lm-1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ultron28/thor-lm-1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ultron28/thor-lm-1b")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Ultron28/thor-lm-1b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ultron28/thor-lm-1b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ultron28/thor-lm-1b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ultron28/thor-lm-1b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ultron28/thor-lm-1b
- SGLang
How to use Ultron28/thor-lm-1b 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 "Ultron28/thor-lm-1b" \ --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": "Ultron28/thor-lm-1b", "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 "Ultron28/thor-lm-1b" \ --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": "Ultron28/thor-lm-1b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Ultron28/thor-lm-1b with Docker Model Runner:
docker model run hf.co/Ultron28/thor-lm-1b
Upload telemetry.json with huggingface_hub
Browse files6 unmodified lines7891011121314152254 unmodified lines2270227122722273227422756 unmodified lines"target_cus": 50.0,"context": 2048},"total_tokens": 294912000,"steps": 2250,"cu_burned": 16.1586202787492,"history": [{"step": 1,2254 unmodified lines"tokens": 294912000,"time_elapsed": 8492.121606349945,"cu_burned": 16.1586202787492}]}6 unmodified lines7891011121314152254 unmodified lines22702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425256 unmodified lines"target_cus": 50.0,"context": 2048},"total_tokens": 327680000,"steps": 2500,"cu_burned": 19.38149543167154,"history": [{"step": 1,2254 unmodified lines"tokens": 294912000,"time_elapsed": 8492.121606349945,"cu_burned": 16.1586202787492},{"step": 2260,"loss": 0.22360792756080627,"ppl": 1.2505806051074222,"rho": 0.79296875,"lr": 0.002488372930659982,"tokens": 296222720,"time_elapsed": 8614.127654075623,"cu_burned": 16.390770675116116},{"step": 2270,"loss": 0.19179409742355347,"ppl": 1.2114210565668038,"rho": 0.78515625,"lr": 0.0024839510371607873,"tokens": 297533440,"time_elapsed": 8679.463048696518,"cu_burned": 16.515089412103098},{"step": 2280,"loss": 0.21761934459209442,"ppl": 1.2431137795621154,"rho": 0.79296875,"lr": 0.002479514627569454,"tokens": 298844160,"time_elapsed": 8744.833414793015,"cu_burned": 16.639474692036707},{"step": 2290,"loss": 0.20329398475587368,"ppl": 1.2254326738228842,"rho": 0.796875,"lr": 0.002475063779107938,"tokens": 300154880,"time_elapsed": 8810.212334871292,"cu_burned": 16.763876248296764},{"step": 2300,"loss": 0.22363521810621023,"ppl": 1.2506147345999112,"rho": 0.79296875,"lr": 0.002470598569249524,"tokens": 301465600,"time_elapsed": 8875.642314910889,"cu_burned": 16.88837496031655},{"step": 2310,"loss": 0.20524974539875984,"ppl": 1.2278316719852675,"rho": 0.7890625,"lr": 0.002466119075717477,"tokens": 302776320,"time_elapsed": 8941.145696401596,"cu_burned": 17.01301333898637},{"step": 2320,"loss": 0.2013732846826315,"ppl": 1.2230812441150114,"rho": 0.78125,"lr": 0.0024616253764836904,"tokens": 304087040,"time_elapsed": 9006.65131855011,"cu_burned": 17.13765598113007},{"step": 2330,"loss": 0.20005363132804632,"ppl": 1.221468265368773,"rho": 0.7890625,"lr": 0.002457117549767327,"tokens": 305397760,"time_elapsed": 9072.154180526733,"cu_burned": 17.262293371280034},{"step": 2340,"loss": 0.22489053662866354,"ppl": 1.2521856402278841,"rho": 0.7890625,"lr": 0.002452595674033459,"tokens": 306708480,"time_elapsed": 9137.649941205978,"cu_burned": 17.386917249239154},{"step": 2350,"loss": 0.20133981946855783,"ppl": 1.223040314124217,"rho": 0.78515625,"lr": 0.0024480598279917,"tokens": 308019200,"time_elapsed": 9203.171305894852,"cu_burned": 17.511589845938815},{"step": 2360,"loss": 0.20605563838034868,"ppl": 1.2288215717353481,"rho": 0.7890625,"lr": 0.002443510090594839,"tokens": 309329920,"time_elapsed": 9268.676305532455,"cu_burned": 17.636231303582587},{"step": 2370,"loss": 0.23140653502196074,"ppl": 1.260371520475842,"rho": 0.80078125,"lr": 0.0024389465410374605,"tokens": 310640640,"time_elapsed": 9334.186704874039,"cu_burned": 17.760883035663102},{"step": 2380,"loss": 0.18044502846896648,"ppl": 1.1977502775041808,"rho": 0.78515625,"lr": 0.002434369258754572,"tokens": 311951360,"time_elapsed": 9399.709253549576,"cu_burned": 17.885557885226277},{"step": 2390,"loss": 0.17747161071747541,"ppl": 1.1941941551059652,"rho": 0.78515625,"lr": 0.002429778323420217,"tokens": 313262080,"time_elapsed": 9465.231437444687,"cu_burned": 18.01023204069336},{"step": 2400,"loss": 0.20763585716485977,"ppl": 1.2307649137141747,"rho": 0.79296875,"lr": 0.002425173814946089,"tokens": 314572800,"time_elapsed": 9530.738263368607,"cu_burned": 18.134876973354153},{"step": 2410,"loss": 0.21239934209734201,"ppl": 1.23664162954747,"rho": 0.8046875,"lr": 0.002420555813480143,"tokens": 315883520,"time_elapsed": 9596.249288320541,"cu_burned": 18.25952989583214},{"step": 2420,"loss": 0.19130385480821133,"ppl": 1.210827311891115,"rho": 0.79296875,"lr": 0.0024159243994051967,"tokens": 317194240,"time_elapsed": 9661.76038479805,"cu_burned": 18.3841829544074},{"step": 2430,"loss": 0.1773944217711687,"ppl": 1.1941019800749395,"rho": 0.7890625,"lr": 0.0024112796533375335,"tokens": 318504960,"time_elapsed": 9727.283032894135,"cu_burned": 18.50885799314578},{"step": 2440,"loss": 0.1783522474579513,"ppl": 1.1952462695515362,"rho": 0.79296875,"lr": 0.0024066216561255,"tokens": 319815680,"time_elapsed": 9792.787514448166,"cu_burned": 18.633498464991646},{"step": 2450,"loss": 0.1868305243551731,"ppl": 1.2054229779014018,"rho": 0.78515625,"lr": 0.0024019504888480973,"tokens": 321126400,"time_elapsed": 9858.305272102356,"cu_burned": 18.75816419830587},{"step": 2460,"loss": 0.19373156037181616,"ppl": 1.2137704151413313,"rho": 0.78515625,"lr": 0.0023972662328135682,"tokens": 322437120,"time_elapsed": 9923.822029590607,"cu_burned": 18.88282802852657},{"step": 2470,"loss": 0.193392566870898,"ppl": 1.2133590245922925,"rho": 0.796875,"lr": 0.0023925689695579863,"tokens": 323747840,"time_elapsed": 9989.343109607697,"cu_burned": 19.007500083559087},{"step": 2480,"loss": 0.16052002320066094,"ppl": 1.1741212825712897,"rho": 0.7890625,"lr": 0.0023878587808438324,"tokens": 325058560,"time_elapsed": 10054.861400604248,"cu_burned": 19.132166831705305},{"step": 2490,"loss": 0.18447789968922734,"ppl": 1.202590403369537,"rho": 0.7890625,"lr": 0.002383135748658574,"tokens": 326369280,"time_elapsed": 10120.374787330627,"cu_burned": 19.25682424811522},{"step": 2500,"loss": 0.17358321230858564,"ppl": 1.189559668657525,"rho": 0.7890625,"lr": 0.0023783999552132377,"tokens": 327680000,"time_elapsed": 10185.895409345627,"cu_burned": 19.38149543167154}]}
telemetry.json+253-3