Instructions to use pedro1111/layout2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pedro1111/layout2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("document-question-answering", model="pedro1111/layout2")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForDocumentQuestionAnswering processor = AutoProcessor.from_pretrained("pedro1111/layout2") model = AutoModelForDocumentQuestionAnswering.from_pretrained("pedro1111/layout2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download emissions.csv from pedro1111/layout2: direct link, hf CLI and curl.
- Browser
- Download file 786 Bytes
-
https://huggingface.co/pedro1111/layout2/resolve/refs%2Fpr%2F1/emissions.csv
- Command line
-
hf download hf://pedro1111/layout2@refs/pr/1/emissions.csv
-
curl -L -o emissions.csv https://huggingface.co/pedro1111/layout2/resolve/refs%2Fpr%2F1/emissions.csv
786 Bytes
| timestamp,project_name,run_id,duration,emissions,emissions_rate,cpu_power,gpu_power,ram_power,cpu_energy,gpu_energy,ram_energy,energy_consumed,country_name,country_iso_code,region,cloud_provider,cloud_region,os,python_version,codecarbon_version,cpu_count,cpu_model,gpu_count,gpu_model,longitude,latitude,ram_total_size,tracking_mode,on_cloud,pue | |
| 2024-03-01T21:22:17,codecarbon,e7619660-18f8-4208-b589-c4af8023a70a,6920.203557014465,0.10364892417034834,1.4977727651564178e-05,42.5,60.36605972043375,40.5345139503479,0.08169005512264041,0.10716574267696721,0.07779815348016011,0.2666539512797679,The Netherlands,NLD,north holland,,,Linux-5.4.0-1103-azure-x86_64-with-glibc2.27,3.10.8,2.3.1,16,AMD EPYC 7V12 64-Core Processor,1,1 x Tesla T4,4.8883,52.3716,108.09203720092773,machine,N,1.0 | |