Huggingface.js documentation
인터페이스: CommitEditFile
@huggingface/inference
Inference Client 사용API 참조
클래스
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
인터페이스
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntry로거옵션TextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
모듈
@huggingface/hub
Hub와 상호작용하기API 참고
클래스
인터페이스
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitEditFileParamsCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySource자격 증명DatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryMlxQuantizationConfigModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
@huggingface/lerobot
@huggingface/usd-web-viewer
인터페이스: CommitEditFile
…
originalContent가 XetBlob인 경우(downloadFile이 xet 기반 파일에 대해 반환하는 경우), 파일의 변경되지 않은 부분은 다운로드되지도 않고 다시 청킹되지도 않습니다. CAS 서버가 청크 정렬된 편집 윈도우와 부분 머클 데이터(GET /v2/file-chunk-hashes)를 제공하므로, 수정된 영역(그리고 해당 청크 경계 인접 영역)만 가져와 다시 청킹하고 해시합니다.
- 버킷(sha256 미사용)의 경우, 이는 편집 및 추가 시 변경되지 않은 데이터를 전혀 다운로드하지 않아도 된다는 의미입니다.
- 모델/데이터셋/스페이스의 경우, 변경되지 않은 데이터는 두 번(sha256 + chunking)이 아니라 한 번만 스트리밍되어 새 파일의 sha256을 계산합니다(LFS 프로토콜에서 요구됨).
originalContent로 다른 Blob를 사용하는 경우, 전체 콘텐츠가 로컬에서 다시 청크 처리되며 변경되지 않은 청크는 원격과 중복 제거됩니다(업로드는 건너뛰지만 콘텐츠는 전체가 읽힙니다).
속성
수정
• edits: { content: Blob ; end: number ; start: number }[]
정의 위치
packages/hub/src/lib/commit.ts:76
연산
• operation: "edit"
정의 위치
packages/hub/src/lib/commit.ts:72
It seems the content you intended to translate is missing. Please provide the text you would like me to translate into Korean.
• originalContent: Blob
나중에 ContentSource가 될 것입니다. 지금은 blob만 처리하는 것이 더 간단합니다.
정의 위치
packages/hub/src/lib/commit.ts:75
path
• path: string
정의 위치
packages/hub/src/lib/commit.ts:73
Update on GitHub